[TYPO3] print the url of the actual page with simulatestatic

Xavier Perseguers typo3 at perseguers.ch
Wed Apr 23 09:31:41 CEST 2008


> >  You may try this:
> >
> >  temp = TEXT
> >  temp {
> >    typolink {
> >      #parameter = {$site.pages.tutorials}
> >      field = uid
> >      returnLast = url
> >    }
> >  }
> >
> >  HTH
> 
> It's unlikely to help, as it won't work :)
> 
> Typolink has no 'field' property, and if the 'parameter' property is
> empty, it will just return the TEXT cObject without a link. Since the
> example TEXT object has no content, the output will be empty.

You're right, I mixed up two definitions :-) This works however:

temp = TEXT
temp.typolink {
   parameter = #
   returnLast = url
}

-- 
Xavier Perseguers


More information about the TYPO3-english mailing list