XF 2.0 Is there any way to style a specific post based on the tag it has?

RobParker

Well-known member
We're trying to think of ways to highlight certain posts (not threads, but individual posts within threads) and I wondered does adding a thread tag then give access to anything that could be styled to make the post stand out?
 
Sort of... This is really just pseudo code (and untested) but this effectively demonstrates the variables and functions you might be able to use to access the information:
HTML:
<xf:if is="$post.Thread.tags.123">
   // do something if this post's thread has been tagged with tag ID 123
</xf:if>
You can find out a tag's ID by viewing the URL of the tag in the Tags section of the Admin CP.
 
Ah doh, I think there's one thing I misunderstood. Is tagging only available at thread level? I assumed individual posts could be tagged but unless I have a permission issue that doesn't seem to be possible.
 
Top Bottom