I have a content type which has an automatic path alias to latest-news/[title]
(e.g. latest-news/example-news-title).
I need to get the first part of the path alias in my page.tpl.php
file, but when I use arg(0)
I am given node
and not latest-news
.
How can I get the first part of an aliases URL in a page template?