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 » Developer » URL version of a string
expandshrink

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,

Damien

Tuesday 09 March 2010 11:56:23 am

I just found the answer to my question with this post : http://share.ez.no/forums/developer/multilingual-japanese-url-alias

So, the method is :

eZURLAliasML::convertToAlias($my_string);

Hope this will help happy.gif Emoticon

Damien

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

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from