Hi,
I have the following chunk, which I call to display my accordion menu.
<li[[+cls:notempty=` class="[[+cls]]"`]]>
<a href="#">[[+showName:notempty=`[[+name]]`]]</a>
<ul class="acitem">
[[GalleryAlbums? &parent=`[[+id]]` &showAll=`0` &rowTpl=`gallery-sub-tpl` &prominentOnly=`0`]]
</ul>
</li>
in line:
<a href="#">[[+showName:notempty=`[[+name]]`]]</a>
I want to be able to check the url param ($_GET in PHP) and if that strin equals my `[[+name]] value, then to add a class. example:
if($_GET['galAlbum']==[[+name]]){
<a href="#" class="active">[[+showName:notempty=`[[+name]]`]]</a>
} else {
<a href="#">[[+showName:notempty=`[[+name]]`]]</a>
}
Is there something simplified in modx chunk? is there another way of doing this? just a reminder, this is in the chunk.
thanks in advanced.