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.

eZ debug

Timing: Jan 18 2025 21:05:39
Script start
Timing: Jan 18 2025 21:05:39
Module start 'layout'
Timing: Jan 18 2025 21:05:39
Module start 'content'
Timing: Jan 18 2025 21:05:39
Module end 'content'
Timing: Jan 18 2025 21:05:39
Script end

Main resources:

Total runtime0.6177 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.2891152.6563
Module start 'layout' 0.00640.0024 741.945339.5078
Module start 'content' 0.00880.6077 781.4531490.2500
Module end 'content' 0.61650.0012 1,271.703112.1094
Script end 0.6177  1,283.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5214160.0002
Check MTime0.00140.2214160.0001
Mysql Total
Database connection0.00150.235710.0015
Mysqli_queries0.572692.6887630.0091
Looping result0.00060.0899610.0000
Template Total0.592996.020.2965
Template load0.00200.326220.0010
Template processing0.590995.651020.2954
Template load and register function0.00010.020410.0001
states
state_id_array0.00070.106410.0007
state_identifier_array0.00100.162420.0005
Override
Cache load0.00170.2777230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.091020.0003
Fetch class attribute name0.00130.213250.0003
XML
Image XML parsing0.00020.032520.0001
class_abstraction
Instantiating content class attribute0.00000.001850.0000
General
dbfile0.00050.0882100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs