Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Tag hackery: is there an equivalent to "if not an article"?
I’m wondering how I would do this: I’m using sections and articles on TXP 4.0.5 and I want to a) display the contents of a form if the thing being displayed is the root of the section…but if an individual article is being displayed within a section, b) display the contents of a custom field instead. It’s an either a) or b), not both – which is where I’m falling down.
Any ideas? Thanks in advance :)
Offline
#2 2008-01-22 16:08:56
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Tag hackery: is there an equivalent to "if not an article"?
Either if_individual_article or if_article_list, with an else tag.
Offline
Offline
Re: Tag hackery: is there an equivalent to "if not an article"?
Perfect – thank you heaps!
Offline