Trash - for Portal Builders

From Sense/Net Wiki
Jump to: navigation, search
  •  
  •  
  •  
  •  
  • 100%
  • 6.0
  • Enterprise
  • Community
  • Planned

Overview

Trash bin

The Trash Bin is a built-in feature of Sense/Net ECMS. Visit the main the Trash Bin article to see all aspects of this feature. This page explains how can you customize your trash bin as a portal builder.

Details

When you delete something into the trash than the content will be wrapped into a special container called the Trash Bag, and will be moved to a central place called the Trash Bin. The path of the trash in the repository is the following:

  • /Root/Trash.

Trash applications

The Smart Application Model works the usual way with the Trash Bin and Trash Bag too. In the default installation you have an application folder (/Root/Trash/(apps)); you can create your actions there, similarly to the default actions like Browse. This is the place for the Trash Bag applications either, you can create your own applications under /Root/Trash/(apps)/TrashBag.

Location of default views

By default, the trash bin and trash bag portlets use the following views:

View frame: /Root/System/SystemPlugins/ListView/TrashFrame.ascx
Default view: /Root/Trash/Views/Default.ascx
  • Trash Bag Browse view:
/Root/Global/ContentViews/TrashBag/Browse.ascx

If you want to customize the default appearance, copy these views and set them as custom views for the Content List Portlet and the Content viewer Portlet of the Browse application pages.

You can customize the message box texts and appearance of the dialogs in the following view:

  • /Root/System/SystemPlugins/Portlets/ContentDelete/Confirmation.ascx

For the restore page there are 3 views depending on the state of the Restore Portlet:

  • Browse view: /Root/System/SystemPlugins/Portlets/ContentRestore/Restore.ascx
  • Notification messages or warnings: /Root/System/SystemPlugins/Portlets/ContentRestore/RestoreInfo.ascx
  • Critical error: /Root/System/SystemPlugins/Portlets/ContentRestore/RestoreError.ascx

Workspace trash - from version 6.3

It is possible to provide a workspace-level trash for users. Deleted content in fact will still be moved to the global Trash (/Root/Trash) but users will be able to see content deleted from a particular workspace in a folder under that workspace. This functionality is practically a filter for the global Trash and can be accessed by creating a SmartFolder under the workspace. Place the SmartFolder anywhere under the workspace.

Properties of the SmartFolder:

  • Folder name: anything - e.g. Workspace Trash
  • Autofilters: disable
  • Query: +InTree:'/Root/Trash' +TypeIs:TrashBag +WorkspaceId:@@CurrentWorkspace.Id@@

All content deleted under the workspace will be visible here and can be restored or deleted permanently. The deleted content are still accessible and restorable from the global Trash and all size and date settings are still applied.

Configuration

You can find more information about configuring the Trash Bin in the following article:

Related links

References

There are no external references for this article.