Also remember to put your textile tags inside a the <textile></textile>tags. You could even use a TV to do this. Check out the HTML Generic tag control. This control can wrap the <textile> tags around your textile content.
Oops, seems like I should learn to read !
Thanks, I’ll now get down to testing it
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
OK, 2 things.
1. I tried installing and using the Textile plugin. I can’t seem to make it work. The tags remain and no formatting is applied.
Should I see the plugin in the Manager’s Assets/Plugins? Cause I don’t see it currently...
(Everything is in the right path, I’m pretty sure. And everything is 755.)
2. Despite my knowing almost no PHP, I tried making my own Markdown plugin based on yours and PHP Markdown Extra -- since there was none... and since I really like Markdown. Seemed ridiculously easy.
Alas, I failed. I can neither get the (professional) Textile plugin nor my own attempted Markdown to work. Same (non-)result in both cases.
Help...?
To install the plugin :
1. Copy/Paste the code of thread in a new plugin (Resources > Manage Resources > Plugins >> New plugin)
2. Before you save the plugin, go to System Events and look for OnWebPagePrerender. Tick the checkbox. Save.
You should know be able to use the plugin. For this, better disable Rich Text Editing. Type your content with whatever textile formatting you need to. Either wrap it in <textile> </textile> or better yet, adapt your template to have any document content parsed with textile : <textile>[*content*]</textile>.
It will work with whatever TV or field you choose to use textile with (It works for me but please Jeff, correct any of this if it’s inaccurate). Still have to test the full syntax though. But so far, no problem whatsovever.
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
We’ve been testing the plugin lately with Chanh (
here and below), are there some limitations with the parser ?
Sorry for the crossposting, but I think it should be posted there :
Tried the
textism sample.
For me :
- lists (unordered and ordered) work
- title work
- links work
- emphasis works
- blockquote works
- all "second level" things like p.{color:red} or bq.[fr] or #{color:blue}doesn’t work
- muli-level list do not work (or rather the second level of depth is not parsed)
- mixed list do not work (or rather the second level of depth is not parsed)
And not in the sample file I also tried :
- quote works
- deleted text works
- superscript works
- subscript works
- accronyms work
- span doesn’t work
- align doesn’t work.
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
I updated this plugin to use the Textile parser from the current Textpattern release (4.0.3). I have not thouroughly tested this, but the textism sample runs ok. Also changed the plugin to accept [tt]<textile>[/tt] tags with attributes.
Thanks a lot punkt
<textile> tag with attributes ? Could you please elaborate ? Thx !!!
NB : Did you check the above example work ? If not, I’ll do that...
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Thanks a lot punkt !
Being a long term Textpattern user I’ll enjoy having Textile up and running full steam
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id