Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: correct typo "system", "raw" may not be necessary

...

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).

...

  1. Set the property subAppClass to info.magnolia.contenttags.shortcut.TagShortcutAwareBrowserSubApp
  2. Add the action info.magnolia.contenttags.dialog.OpenTagDialogActionDefinition and make it available for the content items for which you want to enable tags.
    If you give the action the name addTags, the systmes automatically system automatically provides a translation for the default language (English). If you are using a different name or if you want to change the default translation ("Add tags"), provide an i18n key. 
  3. Make sure the views of the Workbench have columns to display the tags: on the view search set the property implementationClass to info.magnolia.contenttags.app.contenttool.search.TagSearchPresenter.

...

Code Pro
languageyaml
title/using-content-tags/raw/decorations/contacts/apps/contacts.subApps.browser.yaml
linenumberstrue
collapsetrue
urlhttps://git.magnolia-cms.com/projects/DOCUMENTATION/repos/using-content-tags/raw/decorations/contacts/apps/contacts.subApps.browser.yaml?at=master

...

Code Pro
languageyaml
title/using-content-tags/raw/decorations/contacts/apps/contacts.subApps.detail.yaml
linenumberstrue
collapsetrue
urlhttps://git.magnolia-cms.com/projects/DOCUMENTATION/repos/using-content-tags/raw/decorations/contacts/apps/contacts.subApps.detail.yaml?at=master

...