Hi everyone,
I am a bit stumped on displaying the URL alias of a node rather than the node title using views.
I have a list which lists sub pages of a services page. I can easily make the list (using fields) contain the 'page title' and a 'subtitle', both of which are fields on the services content type. What I wanted to do was to list the URL alias of each node rather than the title, so instead of:
Content management (node title)
the list item would display:
content-management (the URL alias)
I could then use a similar token to add a class onto the list item so I would end up with something like this:
<ul>
<li class="views-row views-row-4 views-row-even views-row-last content-management">
<a href="/services/content-management">content-management<span class="menu-subtitle">Drupal, the open source CMS</span></a>
</li>
<li class="views-row views-row-2 views-row-even design-process">
<a href="/services/design-process">design-process<span class="menu-subtitle">How we work together</span></a>
</li>
</ul>
(This isn't the full menu - just a couple of items to demonstrate my point).
I suppose I could add a taxonomy field onto the content type and use that in the list but the URL aliases are already set up and it would make more sense to me (personally) to be able to reference them in the list.