Showing my categories from: Use Options Listed Below
3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 26, 2012 (RSS)
By videopixel - July 23, 2012
How to show All my categories once from a field created with (list) "use options listed below"
on a list viewer? At the moment they are all repeated accordingly with the number of records that uses the category...
on a list viewer? At the moment they are all repeated accordingly with the number of records that uses the category...
Re: [videopixel] Showing my categories from: Use Options Listed Below
By Jason - July 24, 2012
Hi,
Do you mean you want to be able to show what all the different options are that were set up in the list field?
If so, you can use something like this:
Just replace mySection and myListField with the name of your section and list field.
Hope this helps
Do you mean you want to be able to show what all the different options are that were set up in the list field?
If so, you can use something like this:
<ul>
<?php foreach (getListOptions('mySection', 'myListField') as $value => $label): ?>
<li><?php echo $label;?></li>
<?php endforeach ?>
</ul>
Just replace mySection and myListField with the name of your section and list field.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Showing my categories from: Use Options Listed Below
By videopixel - July 26, 2012
Jason,
This was helpful ! Thanks [;)]
This was helpful ! Thanks [;)]