Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-05-26 19:14:40
- alexwest
- Member
- From: Järna, Sweden
- Registered: 2004-08-04
- Posts: 53
Request: if_title
I need a plugin for conditional display based on title field of article.
I imagine this to be a simple plugin, but many thanks in advance.
be safe and happy
Offline
Re: Request: if_title
You might be interested in a plugin i made last year.
If Empty is a simple function that checks to see if an entry field (title, body, excerpt, category1, category2 or image) contains data. If the if_not empty tag is used and the field contains data, the code between the open and close tags is executed, and if the field is empty the code is ignored. There is also an if_empty tag, which obviously does the oposite.
Currently the plugin works with the title, body, excerpt, category1, category2, and article_image fields.
I’m almost done teaching for the year so I’ll soon have time to add features etc.
Last edited by swf (2005-05-26 20:00:06)
Offline
#3 2005-05-28 14:37:17
- alexwest
- Member
- From: Järna, Sweden
- Registered: 2004-08-04
- Posts: 53
Re: Request: if_title
Thank u swf, but what i really need is a plugin that matches the title with a given expression.
be safe and happy
Offline
#4 2005-05-28 15:52:22
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Request: if_title
I haven’t tried this plugin myself, but chances are that ptv_if can do what you want.
Offline
Pages: 1