I'm just wondering if there is a way to extend the related links data type to include a class value for each link. We are using them for a set of quick links, and would like to be able to attach a predefined class name to each link, such as 'emailLink', 'phoneLink' so we can style them correctly on the front end.
A coworker of mine created a new property editor based on related links (his version allowed for a suffix to be appended to URL's). His version was modified based on this version (in Umbraco 7.1.0):
I was thinking of open sourcing it, but I'd rather some major changes be made to the core version of the related links property editor (and similar property editors), so I created these issues instead:
As an example, here's how I typically configure an Archetype for links I used in a site:
It's a heck of a lot easier than creating a custom property editor. For your example, you could have something like this, but instead of "Link Suffix", you could have a dropdown for "Link Type".
Thanks, I will try to use Archetype for my case and I agree with your suggestions to the core functionlity of these property editors, I hope they are approved and incorporated.
Extending related links data type
Hi Guys,
I'm just wondering if there is a way to extend the related links data type to include a class value for each link. We are using them for a set of quick links, and would like to be able to attach a predefined class name to each link, such as 'emailLink', 'phoneLink' so we can style them correctly on the front end.
Cheers
Tanya
Tanya,
Did you ever figure out how to do this (sorry, I know it's an old post)
I am looking for a way to do something similar.
A coworker of mine created a new property editor based on related links (his version allowed for a suffix to be appended to URL's). His version was modified based on this version (in Umbraco 7.1.0):
I was thinking of open sourcing it, but I'd rather some major changes be made to the core version of the related links property editor (and similar property editors), so I created these issues instead:
However, when I need some custom functionality that slightly modifies core functionality, I have now been using Archetype (it's much faster for simple composite data types): https://our.umbraco.org/projects/backoffice-extensions/archetype/
As an example, here's how I typically configure an Archetype for links I used in a site:
It's a heck of a lot easier than creating a custom property editor. For your example, you could have something like this, but instead of "Link Suffix", you could have a dropdown for "Link Type".
Thanks, I will try to use Archetype for my case and I agree with your suggestions to the core functionlity of these property editors, I hope they are approved and incorporated.
is working on a reply...