Tags are a quick and easy method of classifying content within your website. In technical terms, a tag is a piece of metadata assigned to a content node within CQ (usually a page). You can also think of them as keywords or labels that you attach to a page to help you find it again.
- Within CQ, tags can be grouped into various namespaces. Such hierarchies allow taxonomies to be built. These taxonomies are transparent across CQ WCM, CQ DAM and CQ Social Collaboration.
- There are no restrictions on the tags you can create - though they must be unique within a specific namespace.
- Tags can be created by either the page creator, or viewer. Irrespective of their creator, all forms of tags are made available for selection, both when assigning to a page, or when searching.
- To be able to modify the taxonomy, a user must be a member of the "tag-administrators" group (or have modification rights to /etc/tags). Assigning existing tags to content nodes does not require tag-administration rights. It reflects the distinction between authors using tags and librarians managing the taxonomy.
- Tags are also used by the teaser component, which monitors a user's tag cloud to provide targeted content.
- If tagging is an important aspect of your content, make sure to package tags with the pages that use them.
- Tagging makes your life easier by giving you a straightforward way to organize content without too much thought.
- Tags can be controlled. The flexibility and simplicity of tags does not interfere with anything - you have still full control over all your content. Apply permissions to tags and/or namespaces to control who can create tags on your content or use your existing tags.
- You can never have too many tags. Though if you have a lot, you can create namespaces to sort and organize your tags. With namespaces you can create categories of tags to make sure that tags that belong together are grouped together.
- Tags are powerful organizers. With the ability to create tags and sub-tags it becomes possible to express entire taxonomic systems, covering terms, subterms and their relationships. This allows you to create a second (or third) content hierarchy in parallel to the official one.
- Tags improve your search experience. You can search for tags and content that has tags. The default search component in CQ uses these mechanisms, so you can narrow the results down to those that are really relevant.
- Tags can be simple and sophisticated at the same time. To create a tag all you need is a word and the touch of a button - it is that simple. Afterwards you can also add a title and description to the tag to add more semantics. There are no limits on the labels you select for your tags.
- Tags are integral to Web Content Management, Digital Asset Management and Social Collaboration within CQ. The tagging system is a core component of CQ and is used by all CQ Applications to categorize content. Additionally, tagging is available to developers for their own tagging-enabled applications.
- Tags can be created by anyone who needs a quick way to annotate a page. This helps with search-engine optimization, as tags will automatically show up in the metatags of the page, thus ensuring your page will be found by search engines.
- Tags have many names and faces: tags, taxonomy terms, categories, labels and many more. They are flexible in their content model and in the way they can be used; for instance, when outlining target demographics, categorizing and rating content or to create a secondary content hierarchy.
- CQ is ideal for dealing with structured information, thanks to the nesting of pages and paths. It is also extremely powerful when dealing with unstructured information, due to the built-in full-text search. Tagging allows you to combine the strengths of both structure and flexibility.
When designing the content structure for your site, or the metadata schema for your Digital Asset Management, consider the options tagging gives you, as it often provides a more lightweight and accessible approach.
The Tag Administration console can be used to manage your tags and taxonomies.
It shows information about the tags already created for your website, and a count of how often they are referenced in the website:
From here you can perform various actions on tags and/or namespaces.
Depending on the level you are starting from you can create either a tag or a namespace using New:
If you select Tags you can create a namespace:
If you select a namespace (for example Demo) you can create a tag within that namespace:
In both cases enter a name, title, and description then click Create.
In the right-hand pane, select the tag that you want to edit.
You can modify the Title and the Description.
Click Save to close the dialog.
In the right-hand pane, select the tag that you want to delete.
Click Yes to close the dialog.
The tag shouldn't be listed anymore.
In the right-hand pane, select the namespace or tag that you want to activate or deactivate.
Click Activate or Deactivate as required.
List opens a new window showing the paths of all pages using the highlighted tag:
To help tags administrators and developers clean up the taxonomy or rename a tag ID, CQ offers the possibility since the 5.4 version to move a tag to a new location:
Open the Tagging console.
Select the tag and click Move... in the top tool bar (or in the context menu).
In the Move Tag dialog, define:
- to, the destination node.
- Rename to, the new node name.
The Move Tag dialog looks as follows:
Authors should not move tags or rename a tag ID, they should change the tag titles if necessary.
Merging tags can be used when a taxonomy has duplicates. When tag A is merged into tag B, all the pages tagged with tag A will be tagged with tag B and tag A is no more available to authors.
To merge a tag into another one:
Open the Tagging console.
Select the tag and click Merge... in the top tool bar (or in the context menu).
In the Merge Tag dialog, define:
- into, the destination node.
The Merge Tag dialog looks as follows:
To see how many times a tag is being used:
Open the Tagging console.
Click Count usage in the top tool bar: the column Count displays the result.
Since CQ 5.4 it is possible to define a tag title in several languages. Tag titles can then be localized either according to the user language or to the page language.
The following procedure shows how to define the title of the tag Animals in English, German and French:
Go to the Tagging console.
Edit the tag Animals below Tags > Stock Photography.
Add the translations in the following languages:
- English: Animals
- German: Tiere
- French: Animaux
Save the changes.
The dialog looks as follows:
The Tagging console uses the author language, so for the Animal tag, 'Animaux' is displayed for a user who sets the language to French in the user properties.
To add a new language to the dialog, please refer to the section Adding a New Language to the Edit Tag Dialog in the Tagging for Developers page.
By default the tag titles in the page properties are displayed in the page language. The tag dialog in the page properties has a language field that enables to display the tag titles in a different language. The following procedure describes how to display the tag titles in French:
Refer to the previous section to add the French translation to the Animals below Tags > Stock Photography.
Open the page properties of the Products page in the English branch of the Geometrixx site.
Open the Tags/Keywords dialog, select the Stock Photography tab and add the Animals tag to the page.
In the bottom right corner of the dialog, select the French language. The tag title is displayed in French.
The tag dialog looks as follows:
Per default the Page Properties dialog displays the tag names according to the page language.
The language of the tag is taken from the page language if the page language is available. When the tag widget is used in other cases (for example in forms or in dialogs), the tag language depends on the context.
The tag cloud and the meta keywords in the standard page component use the localized tag titles based on the page language, if available.