Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daljit Kaur 16 posts 87 karma points
    Oct 15, 2020 @ 05:25
    Daljit Kaur
    0

    Hi,

    Is there way of extending the existing multi url picker, where instead of having a free text box for adding link title, we could actually choose link title from a preset dropdown of data(for correct mapping). Considering the following scenario, can please some one help, if it is feasible.

    Scenario: In order to add social media links to our site, we have provided a multi url picker. On adding links, such as for facebook, the user must enter the title "facebook", in order to map it to the design. Like we have classes in backend for each social media icon such as twitter, facebook, etc. If user will enter any other word in title, we will be unable to bind the icon class for the same.

  • Marc Goodson 2126 posts 14218 karma points MVP 8x c-trib
    Oct 15, 2020 @ 18:27
    Marc Goodson
    1

    Hi Anonymous

    Have a look at 'Nested Content' https://our.umbraco.com/Documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Nested-Content/

    instead of a Multi Url Picker

    Nested content allows you to define a 'structure' for the repeating items, so you could have an icon Picker + Single Url Picker + textbox... for each repeating item, allowing the editor to choose the associated icon for the link, rather than relying on convention.

    If you do plan to stick with a Url Picker and the convention approach - then consider using the 'Url' instead of the 'Name' to do the mapping - so if the Url contains the word 'facebook' then associate the facebook icon... rather than relying on the editor to type a specific thing in the Url picker name textbox which is a bit fiddily!

    regards

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft