Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-01-10 13:12:29

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

[textile] New test branch: rel attributes for links

All

I present this for testing & your feedback. If you want to download and try it, make sure you get it from the feature-rel-attributes branch.

This commit documents the propsed syntax. It’s not set in concrete and it isn’t in the master branch so it’s not “in” textile yet. YMMV and please don’t subject your live sites to this.

Feedback can be left here, or on issue 2.


Steve

Offline

#2 2011-01-21 01:31:15

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [textile] New test branch: rel attributes for links

Textile rel-attribute support is a feature-candidate for textile core and has been so for a while.

Here’s how to try this out…

  • Install a test copy of textpattern on a localhost site.
  • Download the feature-rel-attributes branch zip
  • Open the zip and over-write your textpattern installation’s classTextile.php with the one from the zip
  • Try out rel-attributes!

Examples…

Textile Output
"linktext(title){rel}":url <a href="url" title="title" rel="rel" >linktext</a>
"linktext(title){!}":url <a href="url" title="title" rel="nofollow" >linktext</a>
"!imageurl(alt text)!(title){rel}":linkurl <a href="linkurl" title="title" rel="rel"><img src="imageurl" /></a>
"(class#id)[en-gb]{text-transform:uppercase}Try this link(Link title){!}":http://textile.sitemonks.com <p><a href="http://textile.sitemonks.com" style="text-transform:uppercase;" class="class" lang="en-gb" id="id" title="Link title" rel="nofollow">Try this link</a></p>

I await feedback on the github issue tracker or in this thread please.

Last edited by net-carver (2011-01-21 02:08:44)


Steve

Offline

Board footer

Powered by FluxBB