Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1

Is there a way to show all tags?

I can see the top 20 popular tags but is there a way to display all tags?

Best Answer

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator
    Accepted Answer

    It is also possible to show a dedicated page with all the tags on it, but I wouldn't know of a way to present them so that it is not a boring list. But depending on the way you use tags, it might not be so useless as I think.

    Creating a plugin that shows such a list would be really easy by the way. If you are interested and have a little knowledge I could guide you.
    If you decide to take the challenge, start with this plugin: https://open.vanillaforums.com/addon/howtovanillapage-plugin
    Customize it a little bit so that it shows texts which suit your needs and in the next steps I would show you how to

    • get all the tags
    • loop through them in a view

    It would really be a good beginner plugin.

    mickeybond

Answers

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Yes and no... If you look here, you will see that the limit of the tags is hard coded and so you cannot simply change it.

    The correct way would be to write your own plugin, something like a "AllTagsModule" plugin which basically would copy the code of the tag module and only change class name and a single line. You would would have to take care for displaying your module and ensuring that the other module isn't displayed in the plugin. Nothing too hard.

    You surely can change that single line in the file, too, and maybe in this case it wouldn't be too bad. Normally I do not advice changing any core files. In this case, I'm uncertain which approach would make more sense.

    Writing your own plugin would be a permanent solution and a solution which could be spread across more than one installation. So in the end I would prefer that.

    mickeybond
  • I was thinking more of a way to simply be taken to a page that displayed all the tags but what you are saying would show them all. It begs the question, if a tag exists but is not within the limit of the top threshold, what good is it? If there is no way to search by it or interact with it then it sort of becomes useless. Maybe i am miss understanding how to use tags correctly. I was thinking of them as a way to connect disparate categories/threads/posts.

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator
    Accepted Answer

    It is also possible to show a dedicated page with all the tags on it, but I wouldn't know of a way to present them so that it is not a boring list. But depending on the way you use tags, it might not be so useless as I think.

    Creating a plugin that shows such a list would be really easy by the way. If you are interested and have a little knowledge I could guide you.
    If you decide to take the challenge, start with this plugin: https://open.vanillaforums.com/addon/howtovanillapage-plugin
    Customize it a little bit so that it shows texts which suit your needs and in the next steps I would show you how to

    • get all the tags
    • loop through them in a view

    It would really be a good beginner plugin.

    mickeybond
  • Thanks for your help, that answers my question. I probably won't create it since i'm lazy not a good developer but it would be a great idea for a plugin if someone else wanted to take it on.

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    I haven't seen that happen too often (that someone is writing a plugin just because it is a good idea).

    By the way: that you are not a good developer is no excuse, since you would find it to be quite easy. But lazyness is a very good reason in this case :wink:

Sign In or Register to comment.