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

eZ Community » Forums » Developer » URL version of a string

URL version of a string

URL version of a string

Tuesday 09 March 2010 11:40:17 am - 1 reply

Hi there,

I was looking for a way to get the URL version of a string in PHP, but I don't found anything in the API.

What I'm looking for is :

  • Convert : "My string qu'elle est belle from Paris"
  • In : "My-string-qu-elle-est-belle-from-paris"

It is exactly what eZ does when you create a new content.

Thanks in advance,


Tuesday 09 March 2010 11:56:23 am

I just found the answer to my question with this post :

So, the method is :


Hope this will help happy.gif Emoticon


Modified on Tuesday 09 March 2010 11:56:45 am by Damien MARTIN


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

36 542 Users on board!

Forums menu

Proudly Developed with from