[TYPO3] same solution with CoolURI [was Re: dynamic text replacement based on domain]
Aaron E. Klemm
aklemm at digipen.edu
Thu Nov 15 20:28:43 CET 2007
In a similar situation I am having trouble with the page tree due to
CoolURI. CoolURI relies on the domain name being the same so links break
in the tree when I use multiple domain records.
Has anyone accomplished dynamic content replacement based on domain
along with the CoolURI clean URL extension?
On Wed, 2007-11-14 at 17:55 -0500, Daniel Mark wrote:
> I have several domains directed to the same site tree within Typo3. I
> need to change instances of the company name within pagecontents
> depending on which domain the user visits from.
> Right now, I'm successfully using the stfl_replacer extension to
> replace those instances. (Thanks for the tip, Bartosz!) But I need to
> dynamically configure the <replacement> tag based on domain, something
> like this:
> <replace index="0">
> [globalString = HTTP_HOST=www.companyA.com]
> <replacement>Company A</replacement>
> [globalString = HTTP_HOST=www.companyB.com]
> <replacement>Company B</replacement>
> Obviously I can't do conditions within my page TSconfig, so I need a
> different strategy. I'm still new to Typo3 so I'm not sure how else to
> approach this. [Is there a way I can set a global variable|constant
> somewhere else and then reference it in my TSconfig?]
> Any help would be appreciated, thanks!
>  http://typo3.org/extensions/repository/view/stfl_replacer/0.3.1/
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
More information about the TYPO3-english