Copied to clipboard

Flag this post as spam?

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


  • Tanya Crawford 5 posts 25 karma points
    Jun 20, 2011 @ 06:14
    Tanya Crawford
    0

    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

     

  • Marvin Varela 14 posts 35 karma points
    Apr 24, 2015 @ 18:29
    Marvin Varela
    0

    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.

  • Nicholas Westby 2005 posts 6843 karma points c-trib
    Apr 24, 2015 @ 19:04
    Nicholas Westby
    0

    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:

    Configuration for Archetype Links

    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".

  • Marvin Varela 14 posts 35 karma points
    Apr 24, 2015 @ 19:54
    Marvin Varela
    0

    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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies