Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-15 20:57:03

zw
New Member
Registered: 2008-06-15
Posts: 1

[textile] Extend textile syntax

Hi,

I found some hints that it should be possible to extend the textile syntax but actually I didn’t find a solution to do it. My problem is that I am using a lot of external images in my textpattern website. The URL to the pictures is always the same. The only thing changing is the number of the pictures.

<a href=“http://…/image.php?image_id=182861&size=l” title=“description” rel=“lightbox[pictures]”><img src=“http://…/image.php?image_id=182861&size=t” alt=“description” /></a>

Now I would like to use a syntax like:

__description

and some extension that creates the rel=“lightbox[pictures]

Is it possible to make textile interpret something like this. Maybe by programming an extension. Or is there another way to achieve that goal?

Regards
Thomas

Offline

#2 2008-06-17 13:55:11

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [textile] Extend textile syntax

I’d recommend a tag plugin rather than changing Textile. One that I know intimately well :D allows you to have your images displayed using forms.

Last edited by Mary (2013-01-24 17:29:19)

Offline

Board footer

Powered by FluxBB