[TYPO3-english] [TV] Including content from other pages.

Tommy Bergeron t.bergeron at gmail.com
Mon Mar 9 13:47:15 CET 2009


Thanks A LOT!

Andreas Burg wrote:
> Tommy,
> 
>>>> put some markers in your HTML-Template like
>>>> ###HEADER### ###FOOTER###
>>>>
>>>> with your TS-Template you can fill those markers with everything you 
>>>> want f.e.
>>>>
>>>> page.10.marks.HEADER = HTML
>>>> page.10.marks.HEADER.value = <div>Hello World!</div>
>>>>
>>>> # or better:
>>>>
>>>> lib.header = HTML
>>>> lib.header.value = <div>Hello World!</div>
>>>>
>>>> page.10.marks.HEADER =< lib.header
> 
> different ways:
> 
> 1. you can change above line to
> 
> lib.header.value (
>   <div>
>     <p>Hello World!</p>
>   </div>
> )
> 
> notice that the "=" is missing.
> --------------------
> 2. you can include a TS-template
> 
> filename:
> my_header.ts
> 
> content of this file:
> lib.header = HTML
> lib.header.value (
>   <div>
>     <p>Hello World!</p>
>   </div>
> )
> 
> include with your TS-template with this line in it:
> <INCLUDE_TYPOSCRIPT: source="FILE: fileadmin//ts/my_header.ts">
> 
> Put it on your page with this line in you TS-template:
> page.10.marks.HEADER =< lib.header
> 
> put this in your htaccess to protect those files from foreign access
> <FilesMatch "\.(ts|tmpl)$">
>   deny from all
> </FilesMatch>
> -----------------------------
> 3. You can put it into your HTML-template between the subpart markers f.e.
> <!-- ###HTML_BODY### begin -->
> 
> your html code
> 
> <!-- ###HTML_BODY### end -->
> -----------------------------------------
> 4.
> you can try:
> lib.header = FILE
> lib.header.file = fileadmin//html_snippets/my_header.html
> 
> I hope it works, I never tried it.
> ---------------------------------------------------
> 5. All modes have theire own pros and cons. If you're german speaking, I 
> suggest the manual by Robert Meyer. Else the TYPO3 Wiki. And take a deep 
> long look into TSref ;-)
> 


More information about the TYPO3-english mailing list