Awesome!
I knew it had to be something small - many thanks! :)
On Mar 26, 4:12 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> remove the ','
>
> {% ifequal nav.slugName current %}
>
> -Doug
>
> On Mar 26, 7:06 pm, "Mikey" <[EMAIL PROTECTED]> wrote:
>
> > Can someone tell me why
remove the ','
{% ifequal nav.slugName current %}
-Doug
On Mar 26, 7:06 pm, "Mikey" <[EMAIL PROTECTED]> wrote:
> Can someone tell me why the following template code always evaluates
> to true when comparing two strings:
>
>
> {% for nav in nav_items %}
> {% ifequal nav.slugName, current
Can someone tell me why the following template code always evaluates
to true when comparing two strings:
{% for nav in nav_items %}
{% ifequal nav.slugName, current %}
{{ nav.displayName }}
{% else %}
{{ nav.displayName }}
{% endifequal %}
{% endfor %}
if
3 matches
Mail list logo