Forums / Setup & design / why mylinks to nodes appears as node_45/node_55/node_56

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

eZ debug

Timing: Jan 31 2025 01:23:03
Script start
Timing: Jan 31 2025 01:23:03
Module start 'content'
Timing: Jan 31 2025 01:23:03
Module end 'content'
Timing: Jan 31 2025 01:23:03
Script end

Main resources:

Total runtime0.2149 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.1719370.2734
Module start 'content' 0.00740.0140 958.44531,005.4844
Module end 'content' 0.02140.1934 1,963.92973,893.6641
Script end 0.2148  5,857.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00442.0466200.0002
Check MTime0.00140.6587200.0001
Mysql Total
Database connection0.00090.423110.0009
Mysqli_queries0.119455.57251410.0008
Looping result0.00160.72221390.0000
Template Total0.192989.810.1929
Template load0.00090.418410.0009
Template processing0.192089.369210.1920
Override
Cache load0.00060.296410.0006
Sytem overhead
Fetch class attribute can translate value0.00180.828010.0018
XML
Image XML parsing0.00040.184710.0004
General
dbfile0.00622.8927200.0003
String conversion0.00000.002430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs