[TYPO3-mvc] website url in fluid?

Pankaj Lele pankaj at lelesys.com
Sun Sep 11 19:52:47 CEST 2011


> is there a way to print the website url (just the domain, like
> http://www.mysite.com ) in FLuid, without writing a ViewHelper (to print
> _SERVER["SERVER_NAME"]) ?

f:cObject can be used smartly.

In your TS template:

lib.myhost = TEXT
lib.myhost.data = getIndpEnv:TYPO3_REQUEST_HOST

In your Fluid template:

<f:cObject typoscriptObjectPath="lib.myhost"></f:cObject>

I did not try this but should work i guess.


-- 

With best regards,
Pankaj Lele
---------------------------

CTO & Executive Director
Lelesys Infotech Pvt. Ltd.
Pune/Goa, India

Web: http://www.lelesys.com

[Certified TYPO3 Integrator]


More information about the TYPO3-project-typo3v4mvc mailing list