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.
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!
Custom Multi Url Picker
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.
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
is working on a reply...