[TYPO3] Showing different content element according to domain subfolder

Tomas Mrozek mail at cascaval.com
Thu Jan 11 13:01:42 CET 2007


> "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