XF 1.5 Thread Tagging

Tags are a common method of adding keywords to content to aid searching and discovery. In XenForo 1.5, we're adding support for applying tags to threads, as well as a framework for add-ons to add tags to their own content types.

upload_2015-6-25_12-53-21.webp


Thread tags apply to the thread itself (rather than individual posts), so they are displayed at the top of the thread view, independent of any post.

Clicking any tag will take you to a page displaying all content that has that tag attached to it:

upload_2015-6-25_12-54-22.webp


These results pages will be accessible to search engines (and of course end users) to help them relate the tagged content to each other.

To edit the tags in an existing thread, clicking the "edit" link shown in the first screenshot will bring up an overlay with a tag editor:

upload_2015-6-25_12-55-15.webp


When typing a tag in, auto-complete options will be displayed.

Tagging Options
If you are allowing untrusted users to apply tags, it may be useful to apply some limits. To do this, there are a number of options:

upload_2015-6-25_12-55-50.webp


These options cover limits over the amount of tagging an individual user can do and the actual structure of the tags. Note that tags will have some normalization applied (lower casing, white space adjustments, etc) independent of any structure limits.

Tagging Permissions
There are also a number of permissions that allow you to control who can tag content:
  • Create new content tag (global) - this controls whether a user can create an entirely new tag. If they do not have this permission (but have permission to apply tags), the user will only be able to use a tag that has already been created.
  • Bypass user content tag limit (global) - having this permission allows the user to bypass the "Max Content Tags Per User" option.
  • Tag thread by self (global and per forum) - this permission allows a user to apply tags to threads they create. By default, they will only be able to edit the tags they applied to the thread.
  • Tag thread by anyone (global and per forum) - this permission allows a user to apply tags to threads created by anyone. Like above, they will generally only be able to edit the tags they applied.
  • Manage tags by others in own thread (global and per forum) - this permission extends the tag management to control any tag that has been applied to their own thread, regardless of who applied it.
  • Manage tags by anyone (global and per forum) - this is a moderator-level permission that allows full tag management.
Admin Tag Management
Admins can manage tags through the admin control panel. They are given a list of tags, including filtering and sorting options:

upload_2015-6-25_12-57-55.webp


Editing a tag gives the following options:

upload_2015-6-25_12-58-13.webp


Normally, when a tag is created, the "URL version" is automatically generated. This is what will be displayed in the URL when viewing the tag results page (example.com/community/tags/tag-name-here/). Normally, this is automatically generated from the user entered tag by deaccenting and normalizing, along with some extra processes to ensure uniqueness. However, an admin can manually override this if desired.

Normally tags will be removed when they are no longer used (specifically, when their last usage is removed). Choosing to make a tag permanent prevents this. This is mostly significant for communities where admins will create a list of valid tags and not allow users to add their own.

Deleting a tag should be straightforward enough. Merging tags allows you to change all references to tag X into tag Y.

Tag Searches
Tag searching is exposed via a new tab on the search pages:

upload_2015-6-25_12-59-19.webp


This allows searching by a single tag or multiple tags. Entering multiple tags will only return content with all tags applied.

Below this, we display a tag cloud showing the most popular tags with various "weights" to indicate how popular they are. There are some options that control what is included in the tag cloud:

upload_2015-6-25_12-59-49.webp


In terms of searching itself, tags are included as part of the content's title, allowing the text of the tag to be searched. With XenForo Enhanced Search, this automatically increases the relevancy of a result matching a tag. Tags are also indexed as "metadata" internally which means they can be searched via a non-keyword method. This is not exposed by default outside of the dedicated tag search page.

Tagging for Developers
Like many other systems in XenForo, the tagging framework is implemented in a content-agnostic way. This allows tagging to be added to many content types easily. Developers wishing to add tagging to their content mostly just need to implement the necessary handler class and display the tags on their content pages.

We intend on releasing updates to our official add-ons to add support for tagging.



That's all for today. Until next time...
 
I'm sorry I can't read all the 6 pages right now, but.. Is that any possible to have an option to add a thread prefix as a tag when thread created?
 
Looks fantastic - so glad this is here. Thank you.

So if I understand correctly, I can use regular expressions to create a list of validated tags that would restrict use of tagging only to those tags? I also assume that requiring at least 1 tag would probably be an add-on since I don't see it at present.
 
It will be interesting to see if it makes a difference for SEO. As for end users finding stuff. The xF elasticsearch on our 1.5m post forum is lightning quick returning great results so I see little benefit for them, rather they'll experience posting confusion wondering what tags are and what difference it makes to them while posting.
 
Bear in mind that it's tricky for us to track and others to find suggestions posted here.

Ideally find an existing suggestion or post your own suggestion is one doesn't exist in the Suggestions forum.
 
Bear in mind that it's tricky for us to track and others to find suggestions posted here.

Ideally find an existing suggestion or post your own suggestion is one doesn't exist in the Suggestions forum.

Thanks for the reminder, Chris! :) I've posted my suggestion regarding tagging in the Suggestions forum here.
 
I work on a car-related forum that currently uses VB4 however we are moving to Xenforo soon. What we would like to do is basically what is mentioned here at Tag instead of categories and what they are doing on this platform: Flarum Development Forum

Essentially what we would like to do is allow threads to be located in multiple categories, or essentially present tags as if they were categories. We may even opt to leave the top level forums as is but replace subforums with a limited number of predefined tags that get displayed as if they were the sub-forums themselves. When the user is posting in a specific forum, they are presented with these pre-defined tags/categories of which they can select multiple.
Our current setup for the car model related categories looks like this:
Car Model X
Car Model X: Ordering, Production, Delivery
Car Model X: Driving Dynamics
Car Model X: User Interface
etc.
etc.

The problem with this is that there are many threads whose topics are overlapping, therefore, the ability for the poster to designate a Car Model X as falling into multiple categories would solve this for us.
This would also solve another issue, which is that we have multiple Car Models, so for example, we may also have another forum like this:

Car Model Y
Car Model Y: Ordering, Production, Delivery
Car Model Y: Driving Dynamics
etc
etc
The way things currently are, we have to write the name of the car model in every sub-forum, so that users know which car model a thread, located in a sub-forum, pertains to (important when searching or using the "New Posts" feed.
Ideally, when creating a thread, the user would be able to designate which car model it pertains to, and then add any additional descriptions, such as: Ordering, Production Delivery; Driving Dynamics, etc.

Is this something that we could do now in XF 1.5 with a few tweaks? Or is it something for which we would need an extensive add-on?

I would be happy to add this to the suggestions forum but first want to better understand what is needed for something like this to be implemented.
 
Tagging Options
If you are allowing untrusted users to apply tags, it may be useful to apply some limits. To do this, there are a number of options:

upload_2015-6-25_12-55-50-png.109356


I'm a bit confused by the Max Content Tags Per User, I'm sure I'll figure it out when 1.5.0 enters gold and I see it for my self but...does this mean that users can only ever use that many tags across the site as a whole? Per thread?(If this why have a mx content tags system).

Just a bit confused by both options.
 
20 is the max number of content tags that can be added to a piece of content.

5 is the max number of tags that can be added by a user.

As a specific more clear example: 4 people can add 5 tags to a thread after that, no more tags can be added because that reaches the 20 tags per content limit.

If a user tries to add 6 tags to a thread, that wouldn't work because they can only add 5.
 
Thread Tags can be used for many things, off the top of my head you can quickly use them as a second level of taxonomy for your forum. Example: I have a travel forum, and threads are now sitting in forums that represent Continents or Countries - therefore the main taxonomy is already there. But if I wanted a secondary taxonomy I could easily use the tags - for example I could do that to tag threads for honeymoon trips, for extreme sports trips, etc.

So, even tags won't replace your existing basic structure (which is supported by the forums anyway - but even that might not be the case in all niches), they can extend it quite a bit and that's why I think I'll definitely find a use for them.

Just checking in after a long break - How is the old different taxonomy thing going for people using tags?

Working well?

I have an array of perhaps 50 tags my members could use (not all at once, 2 or 3 at once is fine, but they need a broad spectrum of tag choices)

That can make for a REALLY LONG drop down menu!

How to manage that sort of problem..?

Fewer tags = too basic
A lot of tags = good - but messy to present at the time of posting...

Thanks folks
 
Top Bottom