Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-04 10:53:36

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

[textile] Quick Textile question- Can a class be applied to a hyperlink?

I’m using a class of ‘external’ for hyperlinks outside my site, kind of like this:

<a href="http://example.com" class="external">My Link</a>

Is there a shorter way to create this?

"My Link":http://example.com

If I add the class in parentheses it’s interpreted as a title…

i.e. "My Link(external)":http://example.com

Offline

#2 2009-06-04 10:57:43

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: [textile] Quick Textile question- Can a class be applied to a hyperlink?

Try "(external)My Link":http://example.com

Last edited by jsoo (2009-06-04 10:58:02)


Code is topiary

Offline

#3 2009-06-04 11:07:46

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: [textile] Quick Textile question- Can a class be applied to a hyperlink?

Bingo! That’s exactly what I was after. Thank you jsoo

Offline

#4 2009-06-17 15:02:00

jeancf
New Member
Registered: 2009-06-17
Posts: 1

Re: [textile] Quick Textile question- Can a class be applied to a hyperlink?

jsoo wrote:

Try "(external)My Link":http://example.com

That does not work for me (in Drupal).

"(external)My Link":http://example.com

gets converted to <a href="http://example.com">(external)My Link</a>

I am using the Drupal module with textile-2.0.0 library. As I realize that this syntax is working here, is there a newer version of the lib that I can use?

Last edited by jeancf (2009-06-17 15:37:44)

Offline

#5 2009-06-17 17:14:30

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [textile] Quick Textile question- Can a class be applied to a hyperlink?

jeancf wrote:

I am using the Drupal module with textile-2.0.0 library. As I realize that this syntax is working here, is there a newer version of the lib that I can use?

Note the forum head line: Textpattern Support Forum ;) Textpattern includes updated Textile library.

Last edited by Gocom (2009-06-17 17:18:25)

Offline

Board footer

Powered by FluxBB