I’m working with the photo gallery module. This is the current code that I have:
<ul>
{exp:gallery:category_list gallery="{embed:gallery_name}"}
{if category_id=={segment_3}}<div class="current_subcategory">{/if}
<li><a href="http://{category_path={embed:gallery_name}/category}">{category_name}</a></li>
{if category_id=={segment_3}}</div>{/if}
{/exp:gallery:category_list}
</ul>I’m trying to display each category_name and if the category is the current one, to include a <div class=“current_subcategory”> tag.
The problem that I am having is that category_id is a number while {segment_3} has a “C” before it.
I’ve tried to get around it several different ways but none have worked. Does anyone have any ideas?? Thanks in advance!
~Dana