Once we have a reasonable first set of tags defined the next step is to add them to articles and then add a module to show all the available tags. And we're assigning tags to our articles this is also a good time to make sure keywords are also properly assigned too.

If this is the first time you're applying tags to your articles then it's probably worth taking a little bit of time over it. As we discussed in Joomla Tags - Creation we can use the Status and Access settings to restrict the tags visibility to everyone else until we're happy with the result.

There is also a quick way to bulk updates too which I'll cover later.

As this is the first time I'm deploying tags and I've got just over 50 articles to process I decided now was a good time to do a proper review and start making a list of things to explore and look into while I was at it. Obviously new articles I cheated while this process was underway were properly tagged and metadata checked.

Tagging Articles

I found it easiest to open two browser windows. The first one as Content > Articles and use the sort options to arrange by ID. The second window I opened as Components > Tags and sorted by Order ascending and then rearranged a few using triple-colon to drag then within their group.

Then it's just a case of setting down and working the process, starting at ID 1.

Assigning tags to an article

Start reading the article and concentrate on the tags from your list and which ones are appropriate.

Depending on how many tags you have defined at this point either click the drop-down on Tag and select the appropriate tag or start typing the full path to the tag you want and you'll find that it'll shorten the list of options to something sensible within a  few characters of the top parent. e.g. app or os in the example here and then select the tag you want from the list displayed.

You might find you'll need read through some article a couple of times but that's fine, it's worth taking the time to do it right.

If you find any typing errors then fix them, but resist the temptation to get into substantial rewrites or updates. Note any documents then need attention and come back to that later.

You could even define some private editorial or workflow tags for documents that need fixing.

 

Once you're happy with the tags then it's worth going to the Publishing tab for the article and check that the metadata is correct.

Review metadata and assign keywords The Description is limited to 160 character and should be a summary of the document and this is typically returned by search engines as the summary for the article and pages without a description, or which is judged to be irrelevant to the indexed content can be downgraded. If you're using the  Read More feature of Joomla then the introductory paragraph above the read more line should be similar to the meta description.

Keywords are reportedly not as critical as they used to be thanks to far too many sites abusing them leading to many search engines ignoring them now, but some will still take them into account. Your tags should be a good starting point for selecting keywords. The Joomla help has some observations on what makes good keywords too. The key thing is each keyword can be more than a single word and that each one needs to be separated by a comma.

In this article I'm using Nextcloud, Ubuntu and ESXi as both tags and keywords, but I've also added VMware, Virtual Machine and VM as metadata keywords, two of which area also mentioned in the description as well.

Once the article is saved the selected tags will be visible at the bottom of the article itself and also on the menu's providing you've not disabled them when setting them up.

Example of an article summary with tags displayed

At this point our tags are still set to Unpublished / Restricted so you'll only see them while you're logged in.

Displaying Tags

By default tags will be displayed once assigned and of course providing the reader has the appropriate permissions to see the tag.

I definitely want to have the tags showing on articles and pretty certain having them in on the menu pages (which are menus of type category blog) is OK too but I'm not 100% sure. But it appears for now that you don't get the choice, it's both locations or neither. So this may be very dependent on exactly how you've built the site, and particularly if you've used a single or multiple levels of menu.

Having the tags show up can be set in a few different places.

The site defaults can be accessed via the Options button on Content > Articles. This will open the Article Options page, click on Component > Articles to open all the option for articles and on the first tab, also labelled as Articles near the bottom will be a Tags slider that will switch the global default to Show or Hide.

Using the category blog menu type to display articles puts control over tag display on the menu entry. Under Menus > Main Menu click on the appropriate Menu that displays the articles you want to set the tags for and then chose the options tab. At the bottom of the page is the options for Tabs which will give you four options:

Category blog menu tag options

  • Use Global: Show or hide as per site defaults above (default)
  • Use Article Settings : Tags will be displayed depending on what is enabled for each article
  • Hide: Never show tags on this menu
  • Show: Always show tags

 

 

Tags can also be controlled for each article. Under each articles options tab there is a Tags option which can be set to:

  • Use Global: Show or Hide - This appears use whatever is set in the menu, not what it reports from site defaults.
  • Show: Show tags on this article
  • Hide: Never show tags

The effect of the Use Global option is unexpected (seems like a bug to me) as it means if you want to have tags displayed on your articles but not on the summary created by the category blog menu then you will need to set each article individually to Show and not use the global default.

Deploying the Tags - Popular module

Joomla provides two modules that can display the tags, Tags - Similar which shows a list of articles with similar tags and Tags - Popular which lists the tags themselves.

Tags - Popular module in random cloud layoutThe Tags - Popular module has several display options and can be an ordered list, a random cloud as shown here, show article counts and limit the number of tags displayed.

To use the module go to Content > Site Modules and click New then pick Tags - Popular.

You have to give it a title, such as Topics, but the title doesn't have to be displayed. I'm going to display this in the sidebar of my home page which means a bit of a redesign will be needed so to start with it won't be publicly visible until that's done.

 

Tab Parameter Value Comment
Module Parent Tag App, OS Lets you limit display to just the tags selected, including their sub-tags
Maximum Tags 10  
Order Random Works best with cloud layout
Position Sidebar-Right  
Status Published  
Access Restricted Until home page updated so the main article is narrower
Menu Assignment Menu Selection Main Menu : Home Only want this on the home page
Layout Layout Cloud  

All other values left as default.

Activate Tags

Once you have completed tagging your articles the final step is to review the tags and the activate them. Why not simply enable them all? If you look at the list of tags under Components > Tags you'll probably see that some tags have been used a lot more than others. Some might not even have been used at all such as the tags we used for grouping such as App and OS.

List of tags and usage

If there are unused tags (i.e. their Tagged Items count is zero) that are not being used as a parent for grouping other tags, then you should ask yourself if that tag is really needed. If you have some tags with a very high usage, then you may want to consider adding some sub-tag and adjusting the tagging of those articles.

For example I may consider adding Install and Admin sub-tags to Nextcloud, A further decision then is would I add the Install or Admin tags to the articles in addition to the Nextcloud tag, or instead of.

Once you've got a settled view of the tagging based on the list then it's time consider which tags to actually use. If a tag is only used by a couple of articles then it may be that tag isn't going to add much value right now. So in the example above I wouldn't be using any tag that's been applied to less than 3 articles, which implies a threshold of around 5% of articles for it to be used. As I continue to add articles I might revise that threshold.

Once you've decided which tags to use tick the checkbox in the left column to select them and then go to Actions > Publish and the tags will then become visible on the articles and in the Topics module for registered users. You will also need to publish any parent tags too such as the App tag.

Now you can properly test and review how tags look on articles, category menus and the Topics module and make any adjustments you need.

Once you are happy with the results return to the tags list and select all the ones you want to make public and click on Actions > Batch and Set Access Level = Public

Batch process tags access level as public

And then click Process.

It should only take a few seconds to complete. All of the tags you want to use should now have a status of published and access set to public and be visible to all your site visitors.

Tag Takeaway

Applying tags is not difficult and can add an additional level of organisation and context to your site. The key thing is to have a clear structure for the tags you want to apply and what they mean.

Using the access setting it's also possible to use tags to help you manage the site without them being visible. You could have a set of editorial tags to mark articles that need a review, or perhaps need artwork or graphics to be created or updated. You'll be able to see them as an admin, but nobody else will be aware of them.

There is also some additional capabilities hinted at on the Options tab that I need time to play with and understand too. As always I'll write up the results.