Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[textile] how to add a class to an image link with textile?
hello forum,
i would like to add a class to an image link using textile in order to trigger a lightbox:
<a class="fancybox" href="image_big.jpg"><img src="image_small.jpg" alt=""/></a>
i found that !image_small!:(fancybox)/images/image_big.jpg
doesn’t work
!(fancybox)image_small!:/images/image_big.jpg
adds the class to the img tag.
as i need the images right in my text flow i would like to avoid using article image field. in addition, i would like to stick with textile in order to ease life for the editors. they are likely unable to use html or textpattern tags.
does somebody know a solution?
if lightboxes triggered by classes doesn’t work with textile, which other lightbox solution would you recommend?
thanks in advance
christoph
Offline
#2 2011-12-03 13:58:48
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [textile] how to add a class to an image link with textile?
"(fancybox)!/images/image_small.jpg!":/images/image_big.jpg
Offline
#3 2011-12-03 14:45:49
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: [textile] how to add a class to an image link with textile?
With smd_macro you can create a simple tag such as, for example, this <txp:foto_einsetzen id="253" />
.
Offline