Forum Replies Created
-
AuthorPosts
-
moshemoMemberThanks – I’ll remember that for the future. In the meantime, I got it to work by removing the function and just using the code in the settings page — like this:
`
global $menu;$menu_zero = array_column($menu, 0);
foreach (array_keys($menu_zero, ”, true) as $key) {
unset($menu_zero[$key]);
}piklist(‘field’, array(
‘type’ => ‘select’
,’field’ => ‘top_level_menu’
,’label’ => ‘Choose Menu’
,’choices’ => $menu_zero
));
`
moshemoMemberThanks – that’s what I was looking for :).
I’ll take a closer look at that tomorrow and see if I can implement it.
Be well,
Moshe
moshemoMemberShall do – and nice work on the framework – I’m very much enjoying it.
Be well,
Moshe
moshemoMemberOkay – I tried it again. I put in the minimum amount of info I had to in the header, added the Collapse: true and…
It worked :).
Don’t know what I did wrong before – either way, it’s working now.
Thanks,
Moshe
moshemoMemberHi there,
The thing is, I want this to happen dynamically – that is to say, whenever I create a new Layer Slider I want the drop down menu to automatically update (layerSlider 1, LayerSlider 2, LayerSlider 3, etc.).
Is that possible?
Thanks and be well,
Moshe
moshemoMemberSounds good – thanks.
moshemoMemberThey both work in the Piklist Demo Add-on. I then tried again with my code and lock worked, collapse still doesn’t work.
moshemoMemberI would just like to add that this is something that I would also be interested in.
-
AuthorPosts