Jump to:

3460 Posts in 1064 Topics by 739 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Get published pages in SS3

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

Page: 1
Go to End
Author Topic: 702 Views
  • MitraX
    Avatar
    Community Member
    20 Posts

    Get published pages in SS3 Link to this post

    There is no more column Status in the SiteTree table in SS3.

    Is there any standard way to get published pages only, e.g. PageClass::get()->filter("Status"=>"Published") or anything similar?

  • figjam
    Avatar
    Community Member
    10 Posts

    Re: Get published pages in SS3 Link to this post

    I don't think you need to worry about this. Because it seems that in SS3

    Page::get()->filter($filter);

    will only return published pages. Try this yourself by simply un-publishing a page in a filter...

    702 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.