[TYPO3] TS code differency [t3-newbie]

Xavier Perseguers typo3 at perseguers.ch
Wed Sep 24 16:41:43 CEST 2008


Hi,

maaboo wrote:
> Why substituting {page:14}->http://mysite.name works in this case:
> 
> lib.head = COA
> lib.head.10 = TEXT
> lib.head.10{
>     value (
>     <a href="{page:14}" name="pagetop" id="pagetop">
>     <h1><span>Sitename.</span></h1></a>
>     )
>     insertData = 1
> }
> 
> but doesn't work here with {page:35}:
> 
> lib.newsholder = COA
> lib.newsholder {
>     10 = TEXT
>     10 {
>     value (
>         <div class="l1h">
>         <a href="{page:35}">Page name</a>
>         </div>
>         )
>         insertData = 1
>     }

insertData is badly placed in "value". Anyway, you should use the 
typolink property to create links and wrap to put the div tag:

10 = TEXT
10.value = Page name
10.typolink.parameter = 35
10.wrap = <div class="l1h">|</div>

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html


More information about the TYPO3-english mailing list