Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-04 01:17:25

alext
New Member
Registered: 2005-11-03
Posts: 6

if_category & messy links

A quick question about the if_category conditional tag…

Does it work if messy permanent links are NOT enabled???

Offline

#2 2005-11-04 01:27:57

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: if_category & messy links

Yes, in a page where the category is part of the page URL. Just using the <code><txp:if_category></txp:if_category></code> with no attributes will simply ask if you are in a category. Using something like <code><txp:if_category name=“SomeCategory”></txp:if_category></code> will ask if you are in that specific category. It also works with the <code><txp:else /></code> tag and all of that applies the <code><txp:if_section></code> tags as well.

txp:if_category

Last edited by thebombsite (2005-11-04 01:30:43)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB