Forums / Setup & design / all about |ezurl}
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!
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.
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
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