Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix module name

...

The magnolia-enterprise-pro-demo-webapp and the magnolia-enterprise-pro-demo-bundle for Magnolia 5.6+ contain an example of how to use the Content Tags module. In this page, we show how the Tours app has been modified to enable tagging for tours, and we also provide general instructions and code samples showing how to enable tagging in other apps (Contacts app example).systmes

Make sure your bundle contains the Content tags modules (magnolia-content-tags-core and magnolia-content-tags-ui).

...

Add a configuration node for the workspace - the workspace used by the content app for the content items to which you add tags. Thi ensures, tha when you delete a tag from the Tags app, the system checks for occurrences of these tags on registered workspaces, it shows notifications about these occurrences and, if you agree, it removes references of the tags on content items in registered workspaces.

To enable this, add a node to /modules/content-tags-core/config/taggableWorkspaces:

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
Node nameValue

Mgnl f
modules


Mgnl f
content-tags-core


Mgnl f
config


Mgnl n
taggableWorkspaces

com.example.templates.CustomTemplateDefinition

Mgnl n
<just-a-name>


Mgnl p
appMapping

app:tours:detail

Mgnl p
workspace

tours

taggableWorkspaces

required

The "root" node for content dependencies registration.

templateScript<name>

required

An arbitrary name to register a one taggable workspace for an app.

appMapping

required

Use the pattern apps:<appname>:<detail-subapp-name>

workspace

required

The name of the workspace of the content app.

...