Copied to clipboard

Flag this post as spam?

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


  • higgsy 65 posts 92 karma points
    Jul 30, 2012 @ 18:36
    higgsy
    0

    Looking for a new data type

    Hi all,

    I need a datatype that will store multiple "rows" of the following elements:

    • Image
    • Url
    The markup I want to be able to produce is like so:
    <ul>
    <li>
    <a href="someurl">
    <img src="/media/media.jpg" />
    </a>
    </li>
    <li>
    <a href="some-other-url">
    <img src="/media/media2.jpg" />
    </a>
    </li>
    </ul>
    What I'm wondering is whether anyone knows of a datatype that exists (ootb or downloadable) or whether I need to develop something.
    Thanks in advance
    Al

  • Douglas Ludlow 210 posts 366 karma points
    Jul 30, 2012 @ 18:55
    Douglas Ludlow
    0

    Two datatypes I can think of that will fit your needs:

    uComponents DataTypeGrid

    uComponents Mulit-Url Picker

    Each of them allow you to store rows of data. Both store their information as xml so it's easicly accessible for xslt or razor.

  • Barry Fogarty 493 posts 1129 karma points
    Jul 30, 2012 @ 19:57
    Barry Fogarty
    0

    You could also try the Embedded content datatype - and create a 'child' doctype with a media picker and a content picker/textstring for the URL.

    The stored data is standard Umbraco XML so you can create your markup with an XSLT or Razor macro.

  • higgsy 65 posts 92 karma points
    Jul 30, 2012 @ 21:08
    higgsy
    0

    Fantastic response! I've used the DataTypeGrid which has worked perfectly...thanks so much for tghe quick response!

  • 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