Forum

Thread tagged as: Question, Addons, Gallery

Gallery app: {current_slug} not working

I am trying to use this conditional on Gallery app but it do not works:

<perch:if id="albumSlug" match="neq" value="{current_slug}">
    <li class="grid-item">
        <a href="o.php?s=<perch:gallery id="albumSlug" />">
            <img src="<perch:gallery id="portada" />" alt="<perch:gallery id="albumTitle" />" onload="slideLoaded(this)" />
            <h3><perch:gallery id="albumTitle" /></h3>
        </a>
    </li>
</perch:if>
Raul Serrano

Raul Serrano 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

How are you setting current_slug ?

I thought it was some kind of default value. How should I do it?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Where did you take the example from?

I don't remember, I used it previously on other site but I don't get where it is declared...

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you tell us more about what you're doing?