2012-03-01, 01:13:03
alienee2 Wrote:for the sidebar display of the recent news items, i am using this in my template sidebar:
but the result listing is showing paging at the bottom, so i would like to be able to disable that;Code:<?php get_i18n_search_results(array('tags'=>'_special_news','component'=>'side-news','max'=>4,'HEADER'=>' ')); ?>
Remove the 'max'=>4.
alienee2 Wrote:This is the custom component for rendering the sidebar news listing:
Code:...
<?php echo strftime($dateFormat, $item->pubDate); ?>
...
Here I can't figure out how to specify the date formatting withing the php code for the search results; i see that there is a variable $dateFormat in the component, but how/where would i specify the date format in this case.
Either add 'DATE_FORMAT'=>'%A, %d.%m.%Y' or similar to the get_i18n_search_results call or just replace the variable $dateFormat directly with the format string, e.g. '%A, %d.%m.%Y'.
If you go to Plugins/Configure I18N Search, you will see all possible parameters with explanations.