2012-07-11, 01:05:05
UksusoFF Wrote:hello!
How to display intro of content in Sidebar?
well, we did it at www.get-simple.de that way:
Code:
<?php
if (return_page_slug()!='blog') {
echo '<div class="section">';
echo '<h2>News!</h2>';
nm_list_recent();
echo '</div>';
} else {
echo '<div class="section">';
echo '<h2>News!</h2>';
nm_list_recent();
echo '</div>';
echo '<div class="section">';
echo '<h2>Blog-Archiv</h2>';
nm_list_archives();
echo '</div>';
}
?>
as the news are presented on the page with the slug "blog", we show archive + latest news on that page,
on all other pages we only show latest news
Cheers, Connie
|--
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18