Jump to:

3373 Posts in 998 Topics by 712 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Which table should I query, ServicePage _live or ServicePage _version or ServicePage

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

Page: 1
Go to End
Author Topic: 722 Views
  • Ben_W
    Avatar
    Community Member
    79 Posts

    Which table should I query, ServicePage _live or ServicePage _version or ServicePage Link to this post

    Hi,

    I have created a new page type call 'ServicePage', in the database, there are three table in relation to this page type. 'ServicePage', 'ServicePage_Live', 'ServicePage_versions'. Now, in the front end, I have a page which simply display all the services that has been created. Which table should I query, that will only display all published page if user views the published site, and display those new draft page, if user views draft site. In other words, I am trying not to display pages that are not published.

    Thanks

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