Forums / General / url alias just for content class object
Gert Mellak
Wednesday 02 December 2009 11:29:17 pm
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
Yannick Komotir
Thursday 03 December 2009 9:09:29 am
Hi,
$node.path_array
<|- Software Engineer @ eZ Publish developpers -|> @ http://twitter.com/yannixk
Gaetano Giunta
Friday 04 December 2009 3:13:51 am
Or you split url_alias on /, and take the last element - hackish, I know... ;)
Principal Consultant International Business Member of the Community Project Board