• Resolved gerrydesmet

    (@gerrydesmet)


    In my website, I need to show the creative common licence.

    Actually, users copy/past licence into the wysiwyg (TinyMCE) field to add this.

    I would like to add a drop down list with static values in html format inside (I think to add this to a taxonomy is too hard).

    When we can see this like value for exemple :

    ??
    licensed under the?Creative Commons – Attribution – Share Alike?license.

    • This topic was modified 6 years, 5 months ago by gerrydesmet.
    • This topic was modified 6 years, 5 months ago by gerrydesmet.
    • This topic was modified 6 years, 5 months ago by gerrydesmet.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi @gerrydesmet

    I’m trying to mentally work out what the dropdown in the admin would be showing, and what you’re envisioning to output on the frontend based on the selection.

    For example, the dropdown would say “Creative Commons Share Alike” and also “Creative Commons Share Alike Non-Commercial” and the rest of the variants I can’t recall the wording for right now. Then on the frontend, based on that selection, it starts outputting all of the graphics associated with that selected license?

    @gerrydesmet are you saying you want a select list like:

    <select name="license">
      <option><img src="path/to/image.jpg"></option>
      <option><img src="path/to/image-2.jpg"></option>
    </select>

    If so, the short answer is, no, you can not include HTML in select options. To do something like this, you need some sort of JavaScript solution that looks like a select widget. ( see: https://stackoverflow.com/questions/11237807/can-i-use-html-tags-in-the-options-for-select-elements )

    If this is not what you are trying to do, then I don’t understand the question.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dropdown list with html text’ is closed to new replies.