[Typo3] Replace single whitespace character with other characterin TS
digitalfan at earthlink.net
digitalfan at earthlink.net
Tue May 24 02:46:53 CEST 2005
Christopher,
No, let me explain it better. I have a page with the title "sony psp" which I want TypoScript to replace with "sony-psp"
If I try to replace a single word like this, it works fine:
before.data = field:title
before.parseFunc.short >
before.parseFunc.short {
sony = replacement
}
If I try to replace 2 words with a space in between, this doesn't work:
before.data = field:title
before.parseFunc.short >
before.parseFunc.short {
sony psp = replacement
}
For some reason, the whitespace is giving me a problem.
Derek
----- Original Message -----
From: "Christopher" <bedlamhotel at gmail.com>
To: "digitalfan at earthlink.net" <derek at digitalfan.com>; "TYPO3 English" <typo3-english at lists.netfielders.de>
Sent: Monday, May 23, 2005 7:12 PM
Subject: Re: [Typo3] Replace single whitespace character with other characterin TS
Hi,
On 5/23/05, digitalfan at earthlink.net <digitalfan at earthlink.net> wrote:
> How can I use parseFunc.short to replace a whitespace character with a dash? I am trying to do this to get the RealURL extension working with a select box I created... I've tried replacing , %20, without luck. Seems that there is no way to show whitespace in TS because it strips it all.
>
> Example:
> before.parseFunc.short {
> (single whitespace character) = -
> }
>
Do you mean something like this?:
temp.textObject = TEXT
temp.textObject {
value = Some text goes here
noTrimWrap = | [Begin Wrap] | [End Wrap] |
}
...this should output:
{2 spaces}[Begin Wrap]{5 spaces}Some text goes here{5 spaces}[End
Wrap]{2 spaces}
-Christopher
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
--
I am using the free version of SPAMfighter for private users.
It has removed 34577 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!
More information about the TYPO3-english
mailing list