Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    There should be a way to create a drop-down link list with a go button. That being said, it will take some involved javascript to do this. I will try to create an example for you in the next week. The best way for me to send this your way will be to create a configuration for a library and send it to you so you can import it on your side. This action can either replace your existing settings or you can always create a new configuration to hold this data to try it out.

    Thread Starter ceyon

    (@ceyon)

    awesome looking forward to this.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    All right. This was not easy but I managed to get it working. You will first need to update to the latest version of Link Library since I had to make a few updates to support this.

    Then, you can upload my library configuration that can be found here:

    https://gist.github.com/ylefebvre/c52d5f8da0434d12b34a#file-settingset1export-csv

    Click on the Download zip link to get the csv file in a zip, and use the Import function under library settings to import. This will overwrite all settings for the current library.

    If you want to test or compare, configure link Library to have multiple libraries in the general settings tab and import in a different library.

    Then, for the page content, do something like this:

    [link-library]<button type='button' onclick="window.location=jQuery('#linklistselect').val()">Go!</button>

    This will display Link Library in a drop-down format, followed by a Go! button that will pick up the address from the link and go to that page.

    Let me know if you have trouble getting this to work.

    Please consider donating to support this plugin’s development.

    Thread Starter ceyon

    (@ceyon)

    Great Job. Just one problem and one additional feature. First the links are not opening in a new or blank window. 2nd for the link submission there is no category field so it defaults to the first library. Can you please add that feature. Thanks and I’ve made a small donation for an awesome plugin.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Thanks for the donation. Instead of window.location in the code, you would need to use:

    window.open(jQuery('#linklistselect').val(),'_blank');

    I have not had the chance to test this since I am at work.

    I don’t understand your question about link submission. If you are talking about the form that appears when you use the link-library-add-form shortcode, you need to configure the form so that it displays the category selection field. This is done in the User Submission section under Library Settings. To see the category selector, look for ‘Link category label’ and change the drop-down value from Hide to Show, then save.

    Let me know if this helps and mark the issue as resolved if everything is good.

    Thread Starter ceyon

    (@ceyon)

    Thanks everything works great.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘link drop down option’ is closed to new replies.