Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Drop down list to tag?

RohithRohith New
edited November 2012 in Vanilla 2.0 - 2.8

I have the tagging plugin enabled, and I've added select tag drop down lists on the new discussion form. I want to make it mandatory to select a value in these. When an item is selected, I want it to be added to the list of tags. Can someone gently push me in the right direction as to how I can do this?

Tagged:

Comments

  • Yes, I also search for this.

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    I'm not quite sure what you try to achieve, but if you want to have a drop down and the field of that drop down should be set as a tag, you should look at that plugin: https://github.com/R-J/AddWPInfo
    It is not flexible so you would have to customize it for your needs but it shows you the way how to do it


    hgtonightOurWebMedia
  • @R_J, can you elaborate more on your plugin?

    I read the description but didn't get the full gist of it.

    @Rohith, are you wanting to pre-set defined tags?

    From those pre-defined tags, they select one (or more) mandatory tag?

    I'm working on something very similar to this but it's not done yet.

    Just curious as I can perhaps cater to this option as I develop what I am working on.

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Task was to force users to give a version info when they ask a question. So I've created a plugin that 1. adds a mandatory dropdown field to New Discussion with every possible version number and 2. hooks the BeforeSave Event to save the value of the dropdown field as a tag.
    I guess that's similar to what Rohtih and gymo are asking for.

    I made that plugin for one special use case and that's why I haven't uploaded it to the plugin section here on this site: it could be used as a blueprint but it is not useful out of the box.


    OurWebMediagymoUnderDog
  • @R_J sounds nice. Could You share it? Is it complicated to implement? Im not php-expert ;)

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator
    edited April 2014

    @gymo said:
    R_J sounds nice. Could You share it?

    Already did:

    @R_J said:
    I'm not quite sure what you try to achieve, but if you want to have a drop down and the field of that drop down should be set as a tag, you should look at that plugin: https://github.com/R-J/AddWPInfo


    @gymo said:
    Is it complicated to implement? Im not php-expert ;)

    Try what you can achieve, give a detailed impression of what you want to have when you are finished, and we will find a way ;)


  • OMG :) You already did :D

    Anyway this plugin needs tagging 1.6 and I have vanilla 1.0.18 where You can find 1.1p1 of tagging plugin. I try to put tagging plugin from vanilla 2.1b3, but it's not work (of course? :).

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    You are working with Vanilla 1.0.18?! Let that be a typo...
    Just try to change the version info of the requirements. I think it will work


  • Really it was version 2.0.18 (not 1.... ) ;). Now I have 2.1b2 and Your plugin works fine. It looks like easy so I try to configure it B)

Sign In or Register to comment.