Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Plugin: bit_article_category
I’m not sure if this can already be done with some builtin tag or another plugin but I’ve tried my darned-est to look for an existing solution and failed. So I just made my own.
bit_article_category basically provides a way to output the category titles of the categories of an article in the context of an individual article but outside of the article form.
I anticipate that either I will find a similar tag or plugin that I had overlooked and that could do this or that TxP will soon have builtin functionality of this very simple plugin… til then, it’s just right here if anyone finds it handy. :-)
Two tags come with the plugin:<txp:bit_category1 /><txp:bit_category2 />
No need to explain those.
Only one attribute for either tag (and it’s optional too!):
link – Whether the tag outputs a link or just a title; ‘1’ or ‘0’
default: ‘1’
(Careful! No error checking yet so remember to put these tags in <txp:if_individual_article> conditioanl tags! ;-)
Last edited by bit (2006-08-26 12:05:08)
“The neighboring marshmallow factory fared no better, having been unable to absorb the incredible pressure wave.”
Offline
#2 2006-07-16 19:36:15
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Plugin: bit_article_category
I anticipate that either I will find a similar tag or plugin that I had overlooked and that could do this or that TxP will soon have builtin functionality…
Yes indeed: in svn this isn’t needed, article tags work outside article forms on individual pages. :)
Offline
Pages: 1