Jahia Dev Forum > Recover an urlKey...

0 (0 Good)
0 (0 Bad)

Recover an urlKey in the url

by  Flynn »  2011/06/07 20:38

To adapt CSS styles, i need to recover the urlKey of the second level in an url

Example : localhost:8080/cms/cars/[b:3of3hzbj]4x4[/b:3of3hzbj]/toyota/specifications

Do you have ideas ?

Thanks.

  (Flynn)

Number of messages  32
Registration date
0 (0 Good)
0 (0 Bad)

Re: Recover an urlKey in the url

by  shyrkov »  2011/06/07 20:38

Hi,

you can use the following code to get it:

[code:14jd5me4]
${jahia#46;page

Sergiy Shyrkov (shyrkov)

Number of messages  407
Registration date
0 (0 Good)
0 (0 Bad)

Re: Recover an urlKey in the url

by  shyrkov »  2011/06/07 20:38

Hello,

does the provided solution work for you?

Kind regards
Sergiy

Sergiy Shyrkov (shyrkov)

Number of messages  407
Registration date
0 (0 Good)
0 (0 Bad)

Re: Recover an urlKey in the url

by  Flynn »  2011/06/07 20:38

Works !

TY Shyrkov

  (Flynn)

Number of messages  32
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page