I'm having trouble getting the asset field to use my 'pdf' folder.
The column in the database is called 'promo_asset'. In my form_fields() function I have:
$fields['promo_asset']['type'] = 'asset';
$fields['promo_asset']['class'] = 'asset_select p…
Adding a limit of 2 to the explode like this $new_key = end(explode('--', $key, 2));
But, this is likely going to cause a problem elsewhere. The $vars array ends up with a 'widgets_on_page' key and a 'exists_vars--widgets_on_page' key.
Definitely has something to do with the 'vars--exists_vars--widgets_on_page' value being passed in?
If I filter it out where $vars is being set, everything is fine.
When $key is either 'vars--widgets_on_page' or 'vars--exists_vars--widgets_on_page…
Based on this loop, I would assume that only the posted values that start with 'vars--' would be added to the $vars array, but it doesn't seem that way...somehow the value of '1' in the posted value 'widgets_on_page' is getting into the $vars array?…
If I force $vars['widgets_on_page'] = array('28','29'); in if (!empty($vars) && is_array($vars)) {...}
The values are saved correctly and loaded correctly when I edit the page again.
There is a 'vars--widgets_on_page' => array(..) and a 'widgets_on_page' => '1' which would explain the value of '1' in the database. Any idea where that second 'widgets_on_page' key might be coming from?
--
There is a hidden input on the ed…
Adding the 'no_combo' class and selecting one or more values still results in a value of 1 in the database
Thanks for your assistance BTW. I'm loving FuelCMS
Here is the select:
Widget 1
Widget 2
Widget 3
Widget 4
And this is what one of the * looks like
Widget 10
Should the value in the span be the value of the select?
When I move one of th…
Awesome! So, everything works except for the sorting. I get a checkbox list of my 'Widgets', but there's no drag and drop functionality. Inspecting the DOM, I don't see any draggable/droppable classes on the elements. Am I missing something?
I have…