I'm working on an override for com_content
category blog view and need an unordered list of article tags in blog.php
. Every tag should be wrapped in an <li>
<li>[tag]</li>
<li>[tag]</li>
<li>[tag]</li>
<li>[tag]</li>
After an intense search I found the following code:
<select>
<option value=""><?php echo JText::_('JOPTION_SELECT_TAG'); ?></option>
<?php echo JHtml::_('select.options', JHtml::_('tag.options', true, true), 'value', 'text', $this->state->get('filter.tag')); ?>
</select>
which gives me a dropdown box for all tags.
How can i change it to an unordered list?
Update:
I played around a lot but can't get the tag list at top of my category blog. The code from johanpw works, but only for each article item, so that I get duplicates. Is there any way to get every article tag from the selected category/subcategories only once in a list?
Maybe it has to be done by a template like the blog_children.php template to render all the tags which will be then loaded in the blog.php.
My coding skills are to low to solve this problem :(