This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Setup & design » all about |ezurl}
expandshrink

all about |ezurl}

all about |ezurl}

Wednesday 30 April 2003 10:56:28 am - 5 replies

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,

Wednesday 30 April 2003 11: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

Wednesday 30 April 2003 1:34:06 pm

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 happy.gif Emoticon

Best regard and have a nice day!

Wednesday 30 April 2003 1:43:54 pm

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

Tony

Wednesday 30 April 2003 1:49:50 pm

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

Wednesday 30 April 2003 2:04:04 pm

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from