Forums / Setup & design / all about |ezurl}

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

eZ debug

Timing: Jan 29 2025 14:41:16
Script start
Timing: Jan 29 2025 14:41:16
Module start 'content'
Timing: Jan 29 2025 14:41:16
Module end 'content'
Timing: Jan 29 2025 14:41:16
Script end

Main resources:

Total runtime0.0620 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0153 587.8203180.8516
Module start 'content' 0.01530.0328 768.671997.8359
Module end 'content' 0.04810.0138 866.507874.7031
Script end 0.0619  941.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00223.4726120.0002
Check MTime0.00101.6222120.0001
Mysql Total
Database connection0.00101.647610.0010
Mysqli_queries0.011318.188440.0028
Looping result0.00000.041920.0000
Template Total0.013321.510.0133
Template load0.00071.209010.0007
Template processing0.012620.293110.0126
Override
Cache load0.00050.792610.0005
General
dbfile0.020833.6341100.0021
String conversion0.00000.013130.0000
Note: percentages do not add up to 100% because some accumulators overlap

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.0001 secs