Conevrt /content/view/full/node_id to nice url

Author Message

Softriva .com

Saturday 10 July 2010 12:25:53 am

Hello

If I have a content/view/full/node_id how can I make it show the urlalias. For example: if node # 233 is for aboutus

<a href={"content/view/full/233"|ezurl}>test</a>

does not show

<a href="/aboutus">test</a>

it shows as

<a href="/content/view/full/233">test</a>

TIA

Ivo Lukac

Saturday 10 July 2010 1:36:09 am

Get the node with fetch function and you will have the name of the node also:

{def $n = fetch(content,node,hash(node_id,233))}
<a href={$n.url_alias|ezurl}>{$n.name|wash}</a>
{undef $n}

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.