Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Convert it to a flexbox display using CSS and then change their order. This will let you reorder them entirely with CSS. Otherwise you'll need to change the PHP to push it to the beginning of the button left array.How can I place the new button in first position ?
Same situation as the input order. Change it to flex and use the order CSS rule. No code necessary.(I mean that this could be cool to order the buttons and have the activities displayed in the buttons ordered, so that it does not always state user has uploaded x files as soon as gallery is used)
I would recommend implementing your own upload and storage behavior. I guess you can technically toggle the CB Gallery upload form open as well, but that's not going to create a server side dependency on it; you'd need to add that validation in your storage behavior to make sure activity save fails if they didn't upload something.Can I use and call a new cb gallery field also called by the new button in another input to store the images in a new folder ?
asset is just a string. It's not an object and doesn't have a set function. Either set it as a string or call the set function for the activity object.I tried to change the asset with the following; is it the way to do it with activity_onAfterCreateStreamActivity instead of activity_onBeforeCreateStreamActivity
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
For editing yeah it's a bit more annoying. You'll need a copy of your auto action and to use activity_onDisplayStreamActivityEdit. Then change the reference variable and the button variable from var1 to var2. I'll be fixing this in 6.0.0 by sending an empty activity object to activity_onDisplayStreamActivityNew so the variable counts line up and you won't have to double code anymore. 6.0.0 will be making significant changes to triggers so some minor adjustments in your usage will be needed later down the road, but won't be significant. As for saving yes just add onBeforeUpdateStreamActivity to your save auto action; you don't need a copy for that one.For the edit and save on edit I guessed that I needed two other auto actions with activity_onDisplayStreamActivityEdit and onBeforeUpdateStreamActivity and managed to change the classes to adapt.
Correct, the CB Gallery implementation doesn't allow adding uploads to an existing entry. This will be changed in 6.0.0. So that is indeed working as intended. Also why I said it'd be best for you to fully implement your own upload and storage workflows so it matches exactly what you need.But for these two triggers, I noticed that it's impossible to edit or add images, only to suppress existing ones. The gallery button is also not present when editing.
Do I miss something ? is this the standard behavior ?
Please Log in or Create an account to join the conversation.
Also why I said it'd be best for you to fully implement your own upload and storage workflows so it matches exactly what you need.
Please Log in or Create an account to join the conversation.