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
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an