Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
new attributes for txp:excerpt and txp:body to control textile
ok, this might be more of a “is it just me?”-type of question than a serious feature request…
would it make sense to have a new attribute textile
for txp:body
and txp:excerpt
? that way one could override the settings made in the article in specific situations where you don’t want the excerpt to be touched by textile for example.
i imagine something like:
<txp:excerpt textile="light" />
or
<txp:body textile="off" />
does that make sense to anyone? or would it even be possible the way the articles are stored in the db..?
Last edited by sthmtc (2007-11-14 13:39:54)
Offline
Re: new attributes for txp:excerpt and txp:body to control textile
Sven,
the Textile to HTML translation is done at the time the article is saved, while attributes to txp-tags are processed every time the page is requested. So adding those attribute would cause a rather huge increase in server strain.
I understand that you are aware of the per-article controls which allow the selection of a text processing method for each and every single article, but I suspect you’d rather have a solution which even works with uncooperative, unwary, or uneducated authors and avoids errors – right? The template tags just aren’t the right place for such a definition in the current shape of things.
Judging from your requirements: Could this be a section’s property?
Offline
Re: new attributes for txp:excerpt and txp:body to control textile
thanks for your reply robert, appreciate it.
the Textile to HTML translation is done at the time the article is saved, while attributes to txp-tags are processed every time the page is requested. So adding those attribute would cause a rather huge increase in server strain.
ok, that was what i’ve thought… totally makes sense. i guess it was just a weird idea i wanted to get out of my head. was thinking about something like marys upm_textile but in reverse… :)
I suspect you’d rather have a solution which even works with uncooperative, unwary, or uneducated authors and avoids errors – right? The template tags just aren’t the right place for such a definition in the current shape of things.
exactly…
Judging from your requirements: Could this be a section’s property?
i’m not sure, i guess not. at least not in this case… edit: on a second thought: could work…
Last edited by sthmtc (2007-11-14 14:25:52)
Offline
Re: new attributes for txp:excerpt and txp:body to control textile
wet wrote:
So adding those attribute would cause a rather huge increase in server strain.
as a sidenote: should i worry about this when i’m wrapping upm_textile around blocks of text in page templates and forms?
Offline
Re: new attributes for txp:excerpt and txp:body to control textile
How about assigning Textile-permissions on a per-author basis? This could be tied to the author’s privileges, but I think it’d be more flexible as an independent option.
Offline