We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32963
    • 1,732 Posts
    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.
      xWisdom
      www.xwisdomhtml.com
      The fear of the Lord is the beginning of wisdom:
      MODx Co-Founder - Create and do more with less.
      • 6726
      • 7,075 Posts
      Oops, seems like I should learn to read !

      Thanks, I’ll now get down to testing it smiley
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
        • 3153
        • 12 Posts
        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...?
          • 6726
          • 7,075 Posts
          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&#39;outil id
            • 3153
            • 12 Posts
            Doh... I didn’t think of turning off FCKEditor... so it was encoding the brackets.

            Hello, I’m Berlueur and I’m a newbie...

            It now works! (I also had to follow your advice of creating the plugin in the Manager; simply dropping the .tpl file didn’t work.)

            Thank you.

            Added bonus: my oh-so-very-complex Markdown plugin also works! Yippee! My first MODx plugin! (Ha...)
              • 6726
              • 7,075 Posts
              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&#39;outil id
                • 24051
                • 3 Posts
                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.
                  • 6726
                  • 7,075 Posts
                  Thanks a lot punkt laugh

                  <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&#39;outil id
                    • 24051
                    • 3 Posts
                    Quote from: davidm at Apr 13, 2006, 04:51 AM

                    Thanks a lot punkt laugh

                    <textile> tag with attributes ? Could you please elaborate ? Thx !!!

                    NB : Did you check the above example work ? If not, I’ll do that...


                    This will work now:
                    [tt]
                    <textile id="whateverid">
                    h2. This is textilized! Groovy!
                    </textile>
                    [/tt]
                    The old plugin didn’t recognize the [tt]<textile>[/tt] tag because of the id attribute. I use a TV HTML Generic Tag, which seems to always append an id attribute to its tag.

                    And yes, I tried the textism sample. It seems to work well, you can see the results on my page.


                      • 6726
                      • 7,075 Posts
                      Thanks a lot punkt !

                      Being a long term Textpattern user I’ll enjoy having Textile up and running full steam grin
                        .: COO - Commerce Guys - Community Driven Innovation :.


                        MODx est l&#39;outil id