• Resolved reditech

    (@reditech)


    Hi

    Am wanting to display an icon for users to click on rather than display the full URL. The database has the link stored as text so want to display an icon that then opens the URL (file or website) in a new window.

    Thanks

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter reditech

    (@reditech)

    Have solved this (sort of) with dynamic hyperlinks and have updated the page. However, there are a few things that need attention:

    Instead of the Id for Location1 and Location2 and Category1 and Category2, I want to have the values of those Id’s. I can get it to work with custom sql but am unable to get the dynamic hyperlinks working when using query rather than table/view.

    Also need an example of a nested macro for displaying icons – there are several different types of icons I wish to display. Maybe I need a use case such as:
    If id=1, display this image, if Id=2, display alternate image, if Id=3, display a 3rd image etc

    Plugin Contributor Kim L

    (@kimmyx)

    Hi @reditech

    Sorry for the delay. ??

    Instead of the Id for Location1 and Location2 and Category1 and Category2, I want to have the values of those Id’s.

    If it works with a custom query, could you try creating a view instead and then add the dynamic links to the view?

    Also need an example of a nested macro for displaying icons – there are several different types of icons I wish to display.?

    You can use a #macro-if-then-else to add conditions to your dynamic hyperlinks. You can find a sample code here.

    Let us know if that helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Icons for URL’s’ is closed to new replies.