[TYPO3] print the url of the actual page with simulatestatic
Christopher Torgalson
bedlamhotel at gmail.com
Wed Apr 23 09:19:51 CEST 2008
On Wed, Apr 23, 2008 at 9:07 AM, Xavier Perseguers <typo3 at perseguers.ch> wrote:
> Hello,
>
>
> > > >>> how can I print the url of my page "simulateStatic"-like
> > > >>>
> > > >>> TEMP= TEXT
> > > >>> TEMP {
> > > >>> field = uid
> > > >>> wrap = "http://index.php?id=|"
> > > >>> }
>
> 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.
Typolink's 'parameter' property does have stdWrap though, so something
like this:
typolink.parameter.data = field:uid
...or this:
typolink.parameter.field = uid
...should work.
--
Christopher Torgalson
http://www.typo3apprentice.com/
More information about the TYPO3-english
mailing list