Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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