Jump to:

3460 Posts in 1064 Topics by 739 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Checking if the page being deleted is a draft

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

Page: 1
Go to End
Author Topic: 793 Views
  • MarcusDalgren
    Community Member
    288 Posts

    Checking if the page being deleted is a draft Link to this post

    Is this possible?

    I set up a couple of onBeforeDelete() functions to make sure the relationships don't brake when the page is deleted.
    However I only want this to run if the page is deleted "for real" not when it's deleted from the draft site.

    Is there some easy way to check if the page is a draft?

    Kindly, Marcus.

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.