How to keep nice URLs from being too long?

Author Message

Martin Crockett

Tuesday 15 February 2005 4:25:28 am

Hi,

I have some news articles being listed on a news page.

The format the links to each article are taking are:

/news/<category>/<title>/<summary>

This results in unnecessary text being used in the URL (in this case, the summary text).

I would prefer them to look like this if possible:

/news/<category>/<title>

Anyone know if this possible?
I've searched high and low and no found the documentation or forum messages to back it up.

Thanks in advance.

;-)

Gabriel Ambuehl

Tuesday 15 February 2005 6:12:27 am

Try editing the Name field at the very top in the class definition of your articles.

Visit http://triligon.org

Ɓukasz Serwatka

Tuesday 15 February 2005 6:22:21 am

Precisely, you must edit "Object name pattern:" just leave <title> or <your_news_name>. You can aslo use URL transator for some of your news If you want.

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

Martin Crockett

Tuesday 15 February 2005 6:48:18 am

Okay fellas.

Looks like you cracked it for me.

Thanks for the help - I appreciate it.

kracker (the)

Tuesday 15 February 2005 10:46:13 am

I tried to post this into the faq, as it is a great little nugget of eZ publish how to information, only to find that even when I'm logged into ez.no I can not post new faq entries.

Could I trouble someone else who can post a new Question / Answer to the FAQ to add this information into the FAQ?

cheers,
//kracker
thinking of eZ publish ... ;)
Eyedea And Abilities : E And A : Paradise

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

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

Main resources:

Total runtime0.9542 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.3672151.2266
Module start 'layout' 0.00550.0029 739.593836.6797
Module start 'content' 0.00830.9449 776.27341,043.3906
Module end 'content' 0.95320.0009 1,819.664111.8125
Script end 0.9541  1,831.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3436160.0002
Check MTime0.00130.1342160.0001
Mysql Total
Database connection0.00080.088810.0008
Mysqli_queries0.885792.8269670.0132
Looping result0.00080.0814650.0000
Template Total0.919396.320.4597
Template load0.00200.207320.0010
Template processing0.917396.140420.4587
Template load and register function0.00160.171210.0016
states
state_id_array0.00100.103710.0010
state_identifier_array0.00160.170820.0008
Override
Cache load0.00170.1774330.0001
Sytem overhead
Fetch class attribute can translate value0.00110.114740.0003
Fetch class attribute name0.00230.243880.0003
XML
Image XML parsing0.00280.296140.0007
class_abstraction
Instantiating content class attribute0.00000.001890.0000
General
dbfile0.00400.4159320.0001
String conversion0.00000.000640.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/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: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs