Welcome Guest, Not a member yet? Register   Sign In
Use url_title() function and accept certain character
#6

[eluser]tolinho[/eluser]
[quote author="joergy" date="1403991830"]I guess You only need the last segment to be converted, don't You?
So simply use
url_title(basename("news/article/some-special-news"))[/quote]

Hi.
Not really. Its the entire slug like
(news/article/some-special-news)

So I can add new items to my menu.
I do this via input field were I add simple text or a link to an already existing page.
If i use only text all is fine.
If I need to link an page inside my site that in this case requires me to add "/"

Thanks


Messages In This Thread
Use url_title() function and accept certain character - by El Forum - 06-28-2014, 10:37 AM
Use url_title() function and accept certain character - by El Forum - 06-28-2014, 01:01 PM
Use url_title() function and accept certain character - by El Forum - 06-28-2014, 01:37 PM
Use url_title() function and accept certain character - by El Forum - 06-28-2014, 02:35 PM
Use url_title() function and accept certain character - by El Forum - 06-28-2014, 02:43 PM
Use url_title() function and accept certain character - by El Forum - 06-28-2014, 03:01 PM
Use url_title() function and accept certain character - by El Forum - 06-28-2014, 03:12 PM
Use url_title() function and accept certain character - by El Forum - 06-28-2014, 05:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB