There is no config option for this. You must do a change in kernel/classes/ezcontentobjecttreenode.php. In the pathWithNames() function you will find two preg_replace expressions. Change underscore to - in the second array argument in both preg_replace calls. Then rerun update/common/scripts/updateniceurls.php.
I'm not sure if I want to make the change badly enough to tinker with code that may be overwrittein in future upgrades. I have to keep track of enough changes as it is. :) It would be nice if future versions of eZ publish provided this as a setting during setup or within the site.ini as the URLs delimiters can have a direct impact on search engine ranking.
Thanks again,
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
It is converted by eZ's transliteration system ( http://ezpedia.org/wiki/en/ez/transliteration ), in eZURLAlias::convertToAlias. The different commands are listed in transform.ini. The one you're looking for is url_cleanup. At the end, you'll have to look at the top of eZCodeMapper::generateCommandCode and eZCodeMapper::executeCommandCode, where preg_replace is transforming your url.
Good luck!
<b>Edit:</b> apparently this question has been answered before: http://ez.no/community/forum/general/transformation_url_transliteration. I did make a nice trip however through the kernel and lib to find it out :-)
i use ezpublish 3.9.4 and i have appplied the patch for dashed url ... now how can I update all existing objects? Launching /bin/php/updateniceurls.php url are not updated .
Thx
You must be logged in to post messages in this topic!