all about |ezurl}

Author Message

Mr Win

Wednesday 30 April 2003 1:56:28 am

Hi men,

so i don't understand ezurl, how it work ?

ex:
i don't want to see that:
http://mysite.com/index.php/my_design/content/view/full/298/

i want only that:
http://mysite.com/298/

how or where i can get instruction about it ?

thanks all,

Tony Wood

Wednesday 30 April 2003 2:04:37 am

Hi,

I don't think what you want is possible, you can turn on 'nice' urls' (like on the ez.no site) but not item number only.
Maybe you could rewite the 'nice' url mapper to use the item number instead of the title of the document. This would require some coding though.

In 3.1 url mapping will be available, so that might help a little as well.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Zinistry Vacana

Wednesday 30 April 2003 4:34:06 am

Are there any tutorial on how to set up the system with nice urls? Don't find any doc. on it.

Not so very easy to find it out by oneself :)

Best regard and have a nice day!

Tony Wood

Wednesday 30 April 2003 4:43:54 am

Take a look here http://ez.no/developer/ez_publish_3/forum/setup_design/nice_urls it should help.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Paul Borgermans

Wednesday 30 April 2003 4:49:50 am

I have an article for this in the queue. Basically you need to (I suppose you also want to get rid of the index.php in the URL):

- Have virtual hosts setup with the rewrite rules

- change all links in the templates (pagelayout_*.tpl and specials like sitemap ....) to use $node.url_alias ($node can be something else in loops)

- replace the ezurl operator into ezroot everywhere in these templates

See the docs on operators for more. The demo that comes with the installation is universal for VH and NVH setups.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Mr Win

Wednesday 30 April 2003 5:04:04 am

so some one tell me, step by step how to create nice url
and what can i do with this file:
update/common/scripts/updateniceurls.php

and some files in /update.

thanks

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 30 2025 21:42:28
Script start
Timing: Jan 30 2025 21:42:28
Module start 'layout'
Timing: Jan 30 2025 21:42:28
Module start 'content'
Timing: Jan 30 2025 21:42:30
Module end 'content'
Timing: Jan 30 2025 21:42:30
Script end

Main resources:

Total runtime1.3061 sec
Peak memory usage8,192.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00010.0053 588.0078151.1953
Module start 'layout' 0.00550.0037 739.2031220.6719
Module start 'content' 0.00921.2958 959.87504,554.4609
Module end 'content' 1.30500.0010 5,514.335915.8750
Script end 1.3060  5,530.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3060160.0002
Check MTime0.00160.1215160.0001
Mysql Total
Database connection0.00090.071110.0009
Mysqli_queries1.198791.7808700.0171
Looping result0.00070.0526680.0000
Template Total1.241595.120.6207
Template load0.00230.173220.0011
Template processing1.239294.878020.6196
Template load and register function0.00220.168810.0022
states
state_id_array0.00140.110110.0014
state_identifier_array0.00310.240220.0016
Override
Cache load0.00190.1428410.0000
Sytem overhead
Fetch class attribute can translate value0.00220.167040.0005
Fetch class attribute name0.00190.146380.0002
XML
Image XML parsing0.00140.108240.0004
class_abstraction
Instantiating content class attribute0.00000.001190.0000
General
dbfile0.00320.2445230.0001
String conversion0.00000.000540.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs