2012-04-19, 02:35:12
Re: i18n Search Results - "Raw" output
I am using i18n special pages in combination with i18n search to make a lot of custom content, and then render the 'results' page in certain ways, one of which for example is with a prettybox gallery, of which the gallery image links to the special page...
In order to get the markup to output correctly, i need to have the 'raw' output of the i18n search results for the special pages; i was able to do it fine, by removing lines 63, 67, 105 and 110, from i18n_search/searchresults.php; [those are the lines that output the containing list elements (ul, li, /li, /ul)]
But i am wondering if there is a better way to do this, maybe using a function in the theme folder...?
Or, if there were an additional parameter in the i18n search results code, like which would by default be off, and you could have the results display without the containing list elements, by specifying this parameter; so this wouldn't affect anyone unless they specifically had a need for it...
so this would be used in cases where you want to have total control over the class/id of the list elements, which is very often needed for things like slideshows, prettyphoto galleries, blog listings, carousels, etc..
Thanks again for making these plugins in the first place.. !
-marc
I am using i18n special pages in combination with i18n search to make a lot of custom content, and then render the 'results' page in certain ways, one of which for example is with a prettybox gallery, of which the gallery image links to the special page...
In order to get the markup to output correctly, i need to have the 'raw' output of the i18n search results for the special pages; i was able to do it fine, by removing lines 63, 67, 105 and 110, from i18n_search/searchresults.php; [those are the lines that output the containing list elements (ul, li, /li, /ul)]
But i am wondering if there is a better way to do this, maybe using a function in the theme folder...?
Or, if there were an additional parameter in the i18n search results code, like
Code:
... 'rawOuput'=>1
so this would be used in cases where you want to have total control over the class/id of the list elements, which is very often needed for things like slideshows, prettyphoto galleries, blog listings, carousels, etc..
Thanks again for making these plugins in the first place.. !
-marc