Jump to:

1842 Posts in 1600 Topics by 558 members

Blog Module

SilverStripe Forums » Blog Module » Displaying selected content

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 353 Views
  • shluckey
    Avatar
    Community Member
    19 Posts

    Displaying selected content Link to this post

    Could someone direct me on how onto alter the following code so that it ignores latest posts with a particular tag. I want all posts marked with 'current' to not be displayed in the post stream I have on another page.

    php-----

    function LatestBlogPosts($num=3) {
    $news = DataObject::get_one("BlogHolder");
    return ($news) ? DataObject::get("BlogEntry", "ParentID = $news->ID", "Date DESC", "", $num) : false;
    }

    thanks

    353 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.