[TYPO3] Showing different content element according to domain subfolder

Gerri Tomlinson gerri at tomlinson.uk.net
Fri Jan 12 00:06:23 CET 2007


Tomas,

This is fantastic!  Thanks for sending links to the documentation as well. 
I'm actually looking forward to working my way through it now :-)

I owe you a very BIG beer!!

Thanks lots!

Gerri

----- Original Message ----- 
From: "Tomas Mrozek" <mail at cascaval.com>
To: <typo3-english at lists.netfielders.de>
Sent: Thursday, January 11, 2007 12:01 PM
Subject: Re: [TYPO3] Showing different content element according to domain 
subfolder


>> "IF URL is www.mydomain.com\client1\ use record IDXX on page23" but I
>> don't know how to convert this into typospeak.
>
> RealURL converts 'client1' to the actual ID of the page.
> Since you know the ID, you can use conditions in your template:
> http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/4/1/
>
> [globalVar = TSFE:id = 123]
>  ...your code...
> [end]
>
> Now you can distinguish between pages (clients) so what is left is
> getting the appropriate content element:
> http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/8/9/
> http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/5/5/
>
> [globalVar = TSFE:id = 123]
>  temp.mycontent = CONTENT
>  temp.mycontent {
>    table = tt_content
>    select {
>      pidInList = UID_of_the_page_holding_the_records
>      uidInList = UID_of_the_content_element
>    }
>  }
> [end]
>
>
> Tomas Mrozek
>
>
>

> 




More information about the TYPO3-english mailing list