We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Update the Textile Plugin - quite urgent

Development and Programming

textdriven's avatar
textdriven
107 posts
18 years ago
textdriven's avatar textdriven

To the newest version of Textile. Now Textpattern 4.0.5 is out they have released some important fixes. I really want to be able to add classes to links which I currently can’t do.

It looks quite simple to update but I’m afraid I may get it wrong.

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

Revision 2462 is the current revision in the 4.0.5 branch of TextPattern. We last updated the Textile plugin on March 16, and the only revisions I am seeing since then are:

Revision 2257: fix bogus caps span in acronym title attribute Revision 2258: allow ellipsis after span Revision 2283: textile: fix overzealous caps span (thanks wet) Revision 2284: textile: simpler fix than [2283] Revision 2429: textile: better flist regexp Revision 2461: textile: fix lines containing only tabs Revision 2462: textile: fix br handling inside list items

Which fix in particular is affecting your ability to add classes to links?

       
textdriven's avatar
textdriven
107 posts
18 years ago
textdriven's avatar textdriven

I’m not sure but I had this problem with a few sites using the 4.0.4 version of Textpattern. Classes for links would just appear next to them like this…

(classname)My link text

I asked the developers and they told me to download the latest build of Textile from the 4.0.5 branch. It fixed the problems perfectly.

Now I’m getting the same problem in EE, using what i’m pretty sure is your latest build of the plugin (sure installed it after march but i’ll check).

       
textdriven's avatar
textdriven
107 posts
18 years ago
textdriven's avatar textdriven

I downloaded your most recent version and replaced my other one just to check but i’m still getting the error.

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

Can you remind me what the syntax is? I’m not able to find it clearly here or here.

Is it:

"linktext":(classname)http://example.com/

or

(classname)"linktext":http://example.com/

Or something else?

       
textdriven's avatar
textdriven
107 posts
18 years ago
textdriven's avatar textdriven

That’s odd I thought the Textile Reference Manual had it. Anyway check here. This is what it should be…

"(classname)Link Text":http://example.com/link
       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

Yeah, it showed with a title attribute, but not a class name. Thanks for the link and example.

       
textdriven's avatar
textdriven
107 posts
18 years ago
textdriven's avatar textdriven

That’s odd title should be the other side. Like this…

“Link Text(title)”:http://example.com/link

That’s what I get when testing it here.

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

Right, I mean that the reference manual shows an example of using a link with a title, but not with a class. I had no idea which part of the line the classname was supposed to go.

       
textdriven's avatar
textdriven
107 posts
18 years ago
textdriven's avatar textdriven

It’s not a complete reference manual yet so don’t take it as a definitive guide.

The developer confirms in the forum thread I linked to that classes on links should work and recommends the users update their Textile version.

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

The Textile Plugin has been updated to revision 2462. Let me know how it works out for you, textdriven.

       
textdriven's avatar
textdriven
107 posts
18 years ago
textdriven's avatar textdriven

Doesn’t seem to have had any effect. The file in the download also says it was last modified March 16th and the version number still looks the same in the plugin area.

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

You may be receiving a version cached by your browser or ISP. Try dumping your caches and trying again. The download file is definitely the one I uploaded today, version ‘2.0.0 r2462’ (will show as such in the plugin manager), and testing with your syntax above is working swimmingly for me.

       
textdriven's avatar
textdriven
107 posts
18 years ago
textdriven's avatar textdriven

You were quite right, it was the browser cache serving me the same plugin. Installed and it works great now!

Thank very much 😊

       
nardo's avatar
nardo
4 posts
17 years ago
nardo's avatar nardo

does this plugin give you the option to set Textile as default formatting for e.g. body textarea?

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.