Zenpage - News listings - Show all...

I'd like to display all the articles in my news section on my sidebar - currently my sidebar just shows 1 link to "All Articles".

I'd like to show all of them - as links to each actual article. Like how the stock "pages" sidebar area is setup as a list...I've searched and all the help documentation links posted go "pages not found"

Thanks,
Mike

Comments

  • I have put a list of the 10 latest articles (without page-navigation) on my index.php, instead of 10 you can put a higher number in the second last line.. could work in the sidebar too

    `
    <?php //latest 10 news articles loop on index.php
    $x = 1; while (next_news()):?>

    ">
    <?php echo getNewsTitle();?>


    <?php if ($x++ >=10) { break;} endwhile; ?>
    `
  • acrylian Administrator, Developer
    @n20capri: It is not really hard to find the documentation on our site's user guide, is it???

    For the latest x articles there is also `printLatestNews()`. If you really want to get all articles you have to use `getNewsArticles()` and do a custom loop.

    Please see the documentation for detailed info.
  • Much appreciated Bert thanks!
Sign In or Register to comment.