Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-26 14:51:17

arpee
New Member
Registered: 2007-10-26
Posts: 2

adding a class to an image tag

Hello,

I’m quite new to textpattern so apologies if this is obvious!

Can anyone tell me how I can add a class to the exclamation mark image tag?

Thanks in advance.

Offline

#2 2007-10-26 15:13:42

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: adding a class to an image tag

I’m not quite sure what you are asking for here. TXP’s image tag will accept a class attribute.

Offline

#3 2007-10-26 15:51:02

arpee
New Member
Registered: 2007-10-26
Posts: 2

Re: adding a class to an image tag

That’s fantastic thank you!

Offline

#4 2007-10-26 16:11:23

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: adding a class to an image tag

The results via textile are confusing? The result I get from the demo site that I would expect (perhaps) to render a class attribute comes back this way:

!image.jpg(test)!:http://textcastle.com

<p><a href="http://textcastle.com"><img src="http://textile.thresholdstate.com/image.jpg" title="test" alt="test" /></a></p>

maybe someone who knows textile better than I?

Offline

#5 2007-10-26 21:36:15

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: adding a class to an image tag

try !(test)image.jpg!:http://textcastle.com instead. personally i just avoid textile altogether :P

Offline

#6 2007-10-26 22:44:14

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: adding a class to an image tag

Yes, that works – thanks.

Offline

Board footer

Powered by FluxBB