2012-03-01, 00:52:50
This is great; i'm almost there with this special news template; The project is here:
http://dev.inbalancetaichi.com/news/
this is using the special pages to render the news listing, sidebar and detail;
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;
This is the custom component for rendering the sidebar news listing:
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.
Thanks again for the assistance!
-marc
http://dev.inbalancetaichi.com/news/
this is using the special pages to render the news listing, sidebar and detail;
for the sidebar display of the recent news items, i am using this in my template sidebar:
Code:
<?php get_i18n_search_results(array('tags'=>'_special_news','component'=>'side-news','max'=>4,'HEADER'=>' ')); ?>
This is the custom component for rendering the sidebar news listing:
Code:
<div>
<a href="<?php echo $item->link; ?>"> <?php echo htmlspecialchars($item->title, ENT_NOQUOTES); ?></a><br />
<span><?php echo strftime($dateFormat, $item->pubDate); ?> </span>
</div>
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.
Thanks again for the assistance!
-marc