[TYPO3] RealURL and links in templates
Luc Franken
typo3 at tentoday.com
Tue May 2 12:44:44 CEST 2006
Look at the source of my website: http://tentoday.com and mention the
base tag. You can create it by something like this in your template
(setup part!):
config.simulateStaticDocuments = 0
config.baseURL = 1
config.tx_realurl_enable = 1
config.baseURL = 1
config.baseURL = http://tentoday.com/
config.prefixLocalAnchors = all
config.prefixRelPathWith = http://tentoday.com/
Cyprian Kowalczyk schreef:
> Hello,
>
> I'm experimenting with RealURLs and I have problems with links inside
> templates.
>
> I have a local test site: http://localhost/mycms/
>
> Because I'm using templateautoparser I have template's links looking
> like: /mycms/somelink/
> (if I use only 'somelink/' the templateautoparser would add the
> 'filedamin/template/' etc prefix to it and that's no good).
>
> I'm using RealURL and I want, for instance, to have the link to work
> also with language and/or admin prefix, like:
> http://localhost/mycms/en/admin/somelink
>
> The solution, I think, would be to add the RealURL's preVars to links.
> How could I do it? Are there any native template parsing/replacing
> methods I could use to achieve this?
>
> Thanks in advance.
> _________________
> regards, Cyprian
> http://pi2.pl ~ π^2 design project
>
> TYPO3 4.0 @ MAMP1.1 [Apache/2.0.54 (Unix) + PHP/5.0.4 DAV/2 +
> MySQL/4.1.12] @ MacOS X 10.4
More information about the TYPO3-english
mailing list