[TYPO3-german] kein Template File von URL seit 6.2?

bernd wilke t3ng at bernd-wilke.net
Mon Nov 3 09:37:29 CET 2014


Am 31.10.14 17:29, schrieb Helmut Hummel:
 > Hi!
 >
 > On 31.10.14 09:05, bernd wilke wrote:
 >
 >> // footer = pageId 16 with type 10 and current language
 >> temp.footerUrl = TEXT
 >> temp.footerUrl.typolink {
 >>     returnLast = url
 >>     parameter = 16
 >>     additionalParams = &type=10&L=
 >>     additionalParams.dataWrap = |{GP:L}
 >> }
 >>
 >> #temp.footer
 >> temp.t3footer = TEMPLATE
 >> temp.t3footer {
 >>     template = FILE
 >>     template.file.cObject < temp.footerUrl
 >> }
 >>

> Probier mal bitte folgendes:
>
> temp.t3footer = TEXT
> temp.t3footer {
>      stdWrap {
>          wrap = http://hostname.tld|
>          typolink {
>              returnLast = url
>              parameter = 1
>              additionalParams = &type=10&L=
>              additionalParams.dataWrap = |{GP:L}
>          }
>      }
>      postUserFunc = TYPO3\CMS\Core\Utility\GeneralUtility->getUrl
> }
>
> (hostname.tld durch Deinen Hostname ersetzen natürlich und evtl. noch
> ein slash am Ende, also http://hostname.tld/ je nach config)

da ich config.absRefPrefix gesetzt habe ist die Domain bei mir schon in 
der Link Url.

> Bei mir geht es.
>
> Kürzeres TS, kein PHP, macht was Du möchtest :)

eigentlich sogar noch kürzer.
da ich die Footer-Url sowieso brauche funktioniert bei mir folgendes:

temp.t3footer < temp.footerUrl
temp.t3footer {
     postUserFunc = TYPO3\CMS\Core\Utility\GeneralUtility->getUrl
}

>
> Das ist auch ein Hack, sollte aber eine Weile funktionieren ;)

hm. damit wären wir doch bei der hier sonst vorgeschlagenen Lösung der 
Userfunc. Mit dem Vorteil, eine Funktion zu haben, die schon fertig 
vorhanden ist und (soweit ich das gesehen habe) auch noch etwas 
flexibler ist, indem sie ggfls auf Curl zurückgreift (bei entsprechender 
Konfiguration)

Danke :)

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-german mailing list