Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By slayerment on
Does anybody know how I could display my mutiselect menu data on my flexinode node?
If I just print something like:
$node->flexinode_33
It displays "array".
I can implode it with something like:
$myVar = implode(' | ', $node->flexinode_33);
print $myVar;
However, this displays the item ID like "1 | 2 | 3" and not the actual text such as "Option 1 | Number 2 | Title 3".
Does anybody know how I could display the actual text?
Thank you!
Comments
please search the forums before posting the same question
i just answered the same question for someone else yesterday. ;)
http://drupal.org/node/50975
___________________
3281d Consulting
oh, that was you
whoops, i just realized you are the person who asked the other question... sorry for jumping the gun. ;)
so, what's different about this and the thing you said was already working perfectly? i don't understand why you're asking again.
___________________
3281d Consulting
Sorry for confusing you...
Sorry for confusing you... The one that you helped me out with yesterday worked perfect... it was the Dropdown menu item. However, this does not work for the Multilist item because this will sometimes output more than one item which makes the data parse as an array. Once it is an array the method you recommended no longer works for this. I am wondering how I can make what you recommended on the dropdown work for my array also.
Thank you very much for you time, I appreciate it :).
Anybody?
Anybody?
Does anybody know?
Does anybody know?