Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Development Idea : Extend TrashCanDevelopment Idea : Extend TrashCan
Previous
 
Next
New Post
2/21/2006 6:12 AM
 

Hello

I've been using DNN since 2003 and just loved it (almost) all the time. One great thing that came along in DNN2 was TrashCan and I just came up with an idea how developers and users could use it more extensively.

At the moment TrashCan (TC) only holds information about tabs/pages and modules that can be restored into their original or other places if "oops" happened. I describe here an real life event that where TC functionality INSIDE module's functionality would be just excellent.

Ok, here we go : let's say that I have a module with product listing that views simple list of products and allows me (or others) to edit products. Now, if I go to edit products and accidentally delete one or more products that were not supposed to delete, in most cases the products are also deleted from underlying database and restoring them requires partial or full restore of database - which, of course, could be quite tricky task with live systems.

Now, If TrashCan could use interfaces inside module, the TrashCan would hold the information about deleted products and the products would be deleted only when TrashCan would be purged. I believe this could be done by inheriting TC functionality into module just like Import/Export/Search etc. are done at the moment. So there could be interface that does the "pre-delete" -functionality that is triggered when product is deleted from module - usually this only sets some DAL property like "IsDeleted" to true, that by business logic, would leave this product out of product listing. Then there would be interfaces for "Restore" that only switch "IsDeleted" to false, and "Purge" that would actually delete the product data from underlying database. Also for showing describing information about product that is deleted but not yet purged in TrashCan, there would be interface "GetItemInfo" or something, that shows data like product name, SKU or whatever the module developer wants to show.

Now, could this kind of functionality exist in DNN 5,6,7 or some other future release, what do you think ?

 
New Post
2/21/2006 7:45 AM
 
I believe that once we implement versioning/workflow in the core, that this issue will be handled as well.  Ultimately, no matter what we do, it is up to module developers to implement the functionality.  The functionality you mention is easily handled today by most modules, but module developers have not chosen to implement this feature.  The difference between modules/pages and the actual module data is that in the former case the core platform completely controls the data, whereas in the latter case the module developers are the only ones with the requisite business knowledge to properly perform the operation.

Joe Brinkman
DNN Corp.
 
New Post
2/21/2006 8:02 AM
 

Yes, of course - this could be implemented by module developers, but as a "best practice" and DNN Core managed functionality this could provide single point of managing deleted items from various locations, also including third party modules that just implement the interfaces required for such functionality. Of course if versioning functionality is to be implemented with easily exposed interfaces for module developers to use, it's even better.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Development Idea : Extend TrashCanDevelopment Idea : Extend TrashCan


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out