Thursday 22 July 2010 5:46:25 am
Gaetano, thank you for your reply and clear idea. I have one more doubt .Can you please clear me if I am wrong. This is about advanced searching. In search.tpl advanced search link is like this. {let adv_url=concat('/content/advancedsearch/',$search_text|count_chars()|gt(0)|choose('',concat('?SearchText=',$search_text|urlencode)))|ezurl} but it will not work . suppose i am putting some search item america in searchbox then i will get the search result page for america. but when I click on advanced search for the same item . i am getting url like this with no results. http://127.0.0.1/ezpublishing/index.php?/muscatdaily/content/advancedsearch/?SearchText=oman But it should be like this to get the result http://127.0.0.1/ezpublishing/index.php?/muscatdaily/content/advancedsearch/ So I have changed the code like this {let adv_url=concat('/content/advancedsearch/')|ezurl} in search.tpl to get the url http://127.0.0.1/ezpublishing/index.php?/muscatdaily/content/advancedsearch/ for advanced search .. is this wrong I am doing? But when i do like that advanced search is properly working. Also I found paging in searchresults is not working. becuse when go to the 2nd page Url getting like this http://127.0.0.1/ezpublishing/index.php?/muscatdaily/content/search/(offset)/10?SearchText=america it should be like this http://127.0.0.1/ezpublishing/index.php?/muscatdaily/content/search/(offset)/10&SearchText=america(instead of ? it should be &) I referred a reply from Lukasz on webpage http://share.ez.no/forums/install-configuration/search-results-and-php-in-cgi-mode-part-2 he is clearly specifying the idea to replace the ? with & using string functions.but i didin't get it. I will be tahnkfull for any help at this point . Romeo.
|