Do not convert node title into friendly links ?

Author Message

Benj Duval

Tuesday 21 March 2006 5:58:41 pm

Hi,
by default my ez publish 3.7.4 converts system urls in virtual urls so for example the system will display /directory/companies/this_is_the_name_of_the_company

I like the system converting containing directory to friendly urls, but I don't like it converting individual nodes, because titles can be very long and ugly.

Is there a way to keep the containers as virtual friendly urls but the nodes as id such is /1 ?

Thanks,
Benj

Antoine Schmid

Tuesday 21 March 2006 11:34:19 pm

Hi,

In your objects, add an attribute 'short_name' and put in the object name pattern : <short_name|name>

This is available within the folders but you can have it for every objects you made.

A.

Sonia Mahendra

Wednesday 25 April 2007 3:38:23 am

Hi Benj,

How did you solve this problem?

I'm having the same trouble, as i don't want the system to convert individual nodes, but use the id instead.

Is there any way i can do this?

Thanks in advance,
Sonia.

http://mzbusiness.com

Nabil Alimi

Wednesday 25 April 2007 5:54:49 am

Hi Sonia,

Maybe the <b>content/view/full/<node_id> </b> can solve your problem ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

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 31 2025 01:23:43
Script start
Timing: Jan 31 2025 01:23:43
Module start 'layout'
Timing: Jan 31 2025 01:23:43
Module start 'content'
Timing: Jan 31 2025 01:23:43
Module end 'content'
Timing: Jan 31 2025 01:23:43
Script end

Main resources:

Total runtime0.0442 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.2656151.2266
Module start 'layout' 0.00490.0041 739.4922220.7188
Module start 'content' 0.00900.0324 960.2109997.8359
Module end 'content' 0.04150.0026 1,958.046933.9922
Script end 0.0441  1,992.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00317.0481140.0002
Check MTime0.00122.7775140.0001
Mysql Total
Database connection0.00071.546610.0007
Mysqli_queries0.00276.073230.0009
Looping result0.00000.038310.0000
Template Total0.00173.810.0017
Template load0.00133.009610.0013
Template processing0.00030.772010.0003
Override
Cache load0.00071.571510.0007
General
dbfile0.006013.615280.0008
String conversion0.00000.021140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0003 secs