Fork me on GitHub

some advice needed: (hope this is the right forum)  Bottom

  • i am designing a module right, and i have a question


    the module has categories, and listings in each category.


    should an admin decide to delete a category, should all sub cats, as well as listings be deleted as well?

    just wondering how other developers handled this.


    right now, as i type i'm thinking, i might just display a message" Are You Sure You Want to Delete X sub-cat and X listings.
  • I delete all sub cats or settings and records related to this and I give a confirmation telling the user what will happen. Another option would be to have a default undeleteable category and automatically assign disenfranchised records to the default category.
  • good call with the default category.


    thanks!
  • No problem if your feeling spunky impelment both options to give the admin the ability to wipe out whole areas or dump to default *grin*

This list is based on users active over the last 60 minutes.