Similar content

Loading

Powered by Canoo FindIT.

Content Dependencies

Magnolia Content Dependencies module provides functionality to track dependent content used by web pages. Dependent content includes other Web pages and DMS assets. Information and alerts are provided when activating or deleting a page that has a dependency on other content and when deleting a page or asset on which another page depends.

Although the Standard Templating Kit would not render broken links on the public instance, this functionality provides all the necessary information about the consequences of an activation or deletion.

Download

Download the Content Dependencies module from Magnolia Store or Nexus repository.

Installing

Content Dependencies is an enterprise module included in the Enterprise Edition bundle and typically already installed. Go to Magnolia Store > Installed modules in AdminCentral to check. To install the module individually, see the general module installation instructions.

Uninstalling

See the general module uninstalling instructions and advice.

Configuration

The Content Dependencies module requires no configuration.

On installation, the module creates the following configuration at Configuration > /modules/dependencies.

Classes and what they do:

Usage

STK

In the STK, the Content Dependencies module includes a generic tabDependencies dialog definition, accessible at Templating Kit > Dialog Definitions > /generic/pages/tabDependencies. This definition uses the dependenciesControl control type registered by the module. See Configuration above.

This generic tab configuration is included in all page properties dialog definitions which are included by mainBar on all STK templates. The page properties dialogs are configured at Templating Kit > Dialog Definition > /pages/*.

Open any page in Website and click Page Info in mainBar to view the tabDependencies tab. The screenshot below is of the stkHomeProperties dialog on the /demo-project page. Both the status indicator and path of the dependent content are included.

Workflow module

In the Workflow module configuration, the Content Dependencies module adds the tabDependencies tab to the editActivationWorkItem dialog definition, accessible at Configuration > /modules/workflow/dialogs/editActivationWorkItem.

In Inbox, when you click Edit Workitem, the editActivationWorkItem dialog opens and the tabDependencies tab lists the status indicator and path of the dependent content. The screenshot below shows the dialog when requesting activation of the /demo-project/about/history page.

Delete command

The Content Dependencies module includes ReferencesHtmlServlet in the filter chain. This configuration is at Configuration > /server/filters/servlets/ReferencesHtmlServlet. It registers the DepencenciesServlet Java class that renders the list of dependencies in the warning message displayed when deleting a page in Website or file in Documents.

When you delete and page or file the warning dialog lists the dependent content.