worchyld Reply #1, 2 years, 11 months ago
I have created a rowTpl for Wayfinder and a Template Variable, [+sitemap_exclude+] which can be a 0 or 1.
If its 1 then this means to hide the entry from the sitemap.
The problem is:
1) If I do this:
Nothing ever appears.
I am trying to figure out what I am doing wrong with respects to the PHX, I want it to do this:
1. If the [+sitemap_exclude+] = 1 then show the list-item in my Wayfinder &rowTpl
But for some reason it doesn't work.
What is the correct way of doing this?
If its 1 then this means to hide the entry from the sitemap.
<li[+wf.id+][+wf.classes+]> [+phx:if=`[+sitemap_exclude+]`:is=`0`:then=`[+sitemap_exclude+]`+] [+sitemap_exclude+] -- <a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</li>
The problem is:
1) If I do this:
[+phx:if=`[+sitemap_exclude+]`:is=`1`:then=`{{Sitemap_rowTpl}}`+]
Nothing ever appears.
I am trying to figure out what I am doing wrong with respects to the PHX, I want it to do this:
1. If the [+sitemap_exclude+] = 1 then show the list-item in my Wayfinder &rowTpl
But for some reason it doesn't work.
What is the correct way of doing this?