Forums / Setup & design / Custom node view and nice url

Custom node view and nice url

Author Message

laurent le cadet

Monday 01 October 2007 1:41:32 am

Hi,

I'm using sevral view for a content class.
It seems basic but and I can't find how to render nice URL:)

<a href={concat('/fr/content/view/company_product/', $node.node_id)}>Products</a>

Any hint?

Regards.

Laurent

Łukasz Serwatka

Monday 01 October 2007 2:45:00 am

{$node.url_alias} hold "nice url" for current node.

If you know node ID you can use URL manager (Setup tab) and assign new URL to it.

/content/view/full/NodeID -> /my_custom_nice_url

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

laurent le cadet

Monday 01 October 2007 3:08:02 am

Łukasz,

The problem is I can use the URL manager as there is actually about 1500 objects and there will be more created by users in frontoffice.

The parent_node is Company and children are Products,News...

I want to render the company_products list or company_news list in a different maner regarding the user is the owner or not.

For that I have links in full/company.tpl pointing to the custom views to toggle between the different views:

Products list | News list

That's why I'm dealing with custom node view.
For non-owners, children will be render in regular view line (i.e).

Is that clear enough.

Laurent