I'd like to be able to hide "invisible" tags (those starting with an underscore) while keeping visible tags, well, visible. Currently we can show or hide tags entirely with the .page-tags class, but individual tag types do not have classes assigned to them.
To keep things in line with current documentation (ListPages refers to tag types as being visible and invisible), I would propose class names like .tag-visible and .tag-invisible so that when rendered, the HTML would look like this:
<div class="page-tags">
<span>
<a class="tag-invisible" href="/system:page-tags/tag/_active#pages">_active</a>
<a class="tag-visible" href="/system:page-tags/tag/apples#pages">apples</a>
<a class="tag-visible" href="/system:page-tags/tag/carrots#pages">carrots</a>
<a class="tag-invisible" href="/system:page-tags/tag/_sticky#pages">_sticky</a>
</span>
</div>
This would allow us to hide our administrative tags while still displaying normal tags with some simple custom CSS.
Interestingly, you can actually do this with the current set up using the attribute selector:
I still like the wish since selecting the non-hidden tags cannot quite be done this way.
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
Thanks for the tip. I'll use that to hide my admin tags until this wish is implemented.
Community Admin