Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-08-18 13:31:51

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: Which plugins to make it into the core?

Why not to include in the standard article and article_custom tag the capability that many plugins already have to filter accordingly to a comma separated list of sections and/or categories, instead of working only with the default section?

Z-

Offline

#14 2006-09-24 03:30:05

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Which plugins to make it into the core?

For if_frontpage, the PHP is pretty simple. I have it in txp:php, since I don’t need all of glx_if’s conditionals:

<pre>
function if_frontpage($atts, $thing) { global $pretext; return ($pretext[“s”] "default" && $pretext["q"] “” && $pretext[“c”] == “”) ? parse($thing) : “”; }
</pre>

<txp:if_frontpage>My awesome line of homepage text.</txp:if_frontpage>

Offline

Board footer

Powered by FluxBB