This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » General » url alias just for content class object
expandshrink

url alias just for content class object

url alias just for content class object

Thursday 03 December 2009 8:29:17 am - 2 replies

I'd like to get a content class object's url alias without the leading folders' aliases ...

Let's say I've got an object "contact" in the folders company/about us, the normal url alias would be company/about_us/contact ... how can I just get the "contact" part?

Thanks in advance!

Gert

Thursday 03 December 2009 6:09:29 pm

Hi,

$node.path_array

Friday 04 December 2009 12:13:51 pm

Or you split url_alias on /, and take the last element - hackish, I know... blunk.gif Emoticon

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from