Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-09-10 01:34:12

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

[textile] class brackets + text (content) brackets

Hi there,
Trying to apply a class to a few words between brackets but not able to get the desired results :-/
Example: %(class)(text to apply the class to)%
I tried inserting square brackets on each side of the text but then those also appear in the text. Also tried with spaces, etc. but nothing.
Any hint?
Thanks in advance,
Ben

Offline

#2 2010-09-10 02:36:16

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

Re: [textile] class brackets + text (content) brackets

ploinkr wrote:

Trying to apply a class to a few words between brackets but not able to get the desired results :-/ […] I tried inserting square brackets on each side of the text but then those also appear in the text

What is the exact output you are trying to achieve?

For example:

%(class)(text to apply the class to)%

Will output:

<span class="class">(text to apply the class to)</span>

Last edited by Gocom (2010-09-10 02:42:50)

Offline

#3 2010-09-10 19:40:55

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

Re: [textile] class brackets + text (content) brackets

Argh! Seems to be working now – may be my browser cache :-P
In any case, thanks for replying Gocom.

Offline

#4 2010-09-11 13:17:32

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

Re: [textile] class brackets + text (content) brackets

No problem Ben :-)

Offline

Board footer

Powered by FluxBB