Share » Forums » Developer » Current URL

Current URL

Current URL

Monday 03 January 2011 5:27:29 am - 3 replies

Author Message

Alain Sahli

Monday 03 January 2011 5:58:20 am

Hi Namita,

You can use the $requested_uri_string which comes from the pagelayout. For more information see this documentation page : http://doc.ez.no/eZ-Publish/Technical-manual/4.4/Templates/The-pagelayout/Variables-in-pagelayout

http://www.wess.ch
eZ Publish Certified developer : http://auth.ez.no/certification/verify/272583

namita varshney

Tuesday 04 January 2011 4:22:20 am

$requested_uri_string will provide me the system URL.

But I want the Current compete URL from browser address bar.

Thanks

Namita

Nicolas Pastorino

Tuesday 04 January 2011 7:17:52 am

$requested_uri_string will provide me the system URL.

But I want the Current compete URL from browser address bar.

Hi Namita,

You can generate the full URL using the 'ezurl' operator :

<a href={$requested_uri_string|ezurl( '','full')}>Current URI</a>

When requesting a content/view/<view-mode>/<node-id> type of URL, you should get the URL Alias (friendly URL, not system one) in the $requested_uri_string variable, then leading to the generation of the URL seen in the browser's address bar.

Let us know how things go,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu