Search
Other Articles Anywhere questions
Forum

Display the value of the first or last option selected

Hitsch's Avatar Hitsch
We have a repeating subform options field with text and value, specifically with several times. The number of options selected can vary (for article X: "08:00, 09:00, 10:00", for article Y: "08:00, 09:00, 11:00, 12:00"). For example
{article}[times]{/article}
gives "08:00, 09:00, 10:00".
QUESTION: Can we use Articles Anywhere to output the first ("08:00") or the last value (for article X "10:00", for article Y "12:00"), analogous to the option "last-separator" a filter possibility "last-value" or "last-text"?

Thank you
Peter van Westen's Avatar Peter van Westen ADMIN
Articles Anywhere offers no option to do nested foreach tags or to grab the first element of a comma separated text value.
You would have to use custom PHP for something like this.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription