I have a wayfinder call which outputs a menu.
I want to make sure that it only ever includes a menu item that has been checked as "Show on homepage" (template variable).
But the problem is, even though I have checked some menu options, it never seems to see the value.
<p[+wf.classes+]>
<a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>
[+phx:if=`[+tv_showHomepage+]`:is=`Yes`:then=`Yes`+] // this never displays anything, even if the item has been checked.
[+phx:if=`[*tv_showHomepage*]`:is=`Yes`:then=`Yes`+] // this never displays anything, even if the item has been checked.
</p>
The checkbox template variable is:
Template variable: tv_showHomepage
Input type: Checkbox
Input options: Yes
Default: (null)
Why does it not see those the value of `tv_showHomepage`?
Secondly, how do I make it say:
"If tv_showHomepage = Yes then display menu item"
Thanks.