Forums / Setup & design / Help : How to retrieve current hostname/url in a tpl ?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Help : How to retrieve current hostname/url in a tpl ?

Author Message

H-Works Agency

Thursday 16 June 2005 7:44:52 am

I know {ezsys("hostname")} but its not good for me as it returns the same thing in case site.com and www.site.com.

In another way {ezurl|ezroot} used alone doesn't work ! It return nothing. It works only in a href={"/links"|ezurl} tag.

So i need a way to retrieve those urls.

Please help...

EZP is Great