The code I am using below is for an interior navigation bar that will show the page title and link for pages that are tagged with @show.
<mt:PageIfTagged tag="@show"> <ul class="leftnav"> <mt:Pages tag="@show" sort_by="title" sort_order="ascend"> <li><a href="<$mt:PagePermaLink$>" title="<$mt:PageTitle$>"><$mt:PageTitle$></a></li> </mt:Pages> </ul> </mt:PageIfTagged>
The question I have is this:
Can I change the code so I can say to show pages that are tagged with @show and NOT tagged with @noshow (another tag).
Any help would be great.
Thanks,
V
Reported on Movable Type 4.2
In your page template create an Mt:SetVarBlock to test for any page tags you want. In your case, there are 4 situations you're interested in (@show, @noshow, both, none). Then use that mt:SetVarBlock variable in place of mt:PageIfTagged. For example, you could give Mt:SetVarBlock a "1" in case your page is tagged @show and a "2" if it is also tagged @noshow. Let me know if you can work it out this way.