why mylinks to nodes appears as node_45/node_55/node_56

Author Message

Softriva .com

Wednesday 16 August 2006 11:58:44 am

Even thought I am using the URL Translator to convert some links to human readable links such as

content/view/full/56->/services/repair/car

the $node.url and $node.url_alias still produces node_45/node_55/node_56

please help?

Softriva .com

Wednesday 16 August 2006 1:00:25 pm

I figured out why my url_aliases is in the form of node_**/node_**.

eZ publish when creating folders relies on the Short Name of the node to create the url_alias. Well the site that I am working on uses Arabic lettering in the short name which can't be used in the url. I tried to change all the short names to English but all the folder appears in the site as english letter which will not please my customer.

Now, how can I make eZ use the name field to create the url_alias or any other solution will be appreciated.

Softriva .com

Wednesday 16 August 2006 1:26:41 pm

figured out why ez is using short_name for generating the url_alias: Object name pattern

Now, how can I solve this problem. My client does not like his links to be as node_45/node_55/node_56 in the same time he does not like his content to appear in english what should I do?

how can I make ez use the name of the a folder instead of the short name without changing the Object name pattern of the class?

Coulibaly Ibrahim

Thursday 17 August 2006 1:03:57 am

you can modify object name Pattern to <name> instead off <short_name|name>

another Possibility is to make a copy of <b>folder class</b> setting only <i>object name pattern</i> to <name>
instead of using folder, class, you will use this new class.

Softriva .com

Thursday 17 August 2006 3:18:15 am

Ibrahim,

You are right however, the problem now is that automatic url translation depends on the objects names which are in Arabic so the url_alias will not have the object name. Automatic url translation when it sees that the object name is not 0-9 and A-Z, it will use node_{$node.node_id} to generate the url_alias. Therefore, a three level node url_alias will be as:

node_xx/node_xx/node_xx

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