[eluser]itibook[/eluser]
Hi all,
as always, sorry if this looks silly. I did search for a while, but did not find anything similar.
I have a uri_segment like the following:
my-title-1.1-is-ok
(this could be a blog post title for example)
the uri was generated via the url_title() function, so nothing funny there.
The issue is that when I try to match uri_segment with the database title I do as follows:
Code:
if(uri_segment(x) == url_title(my-db-title))
The match fails and is caused by the "." characters being substituted with a "_" in the uri_segment function.
Basically the uri_segment gives me this:
Code:
uri_segment(x) -> my-title-1_1-is-ok
while url_title give me this:
Code:
url_title('my title 1.1 is ok') -> my-title-1.1-is-ok
I am really a bit lost at this... I am sure I am missing something easy, but as I am starting this is not that obvious at the moment... :-)
thanks in advance
Luca