Copied to clipboard

Flag this post as spam?

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


  • Brendan Rice 538 posts 1101 karma points
    Jul 24, 2010 @ 00:54
    Brendan Rice
    0

    How can I get a list of items and descriptions

    I want to implement a list of items and descriptions that I will ultimatly display as the following HTML:

    <dl>  
        <dt>Coffee</dt>    
        <dd>- black hot drink</dd>   
        <dt>Milk</dt>      
        <dd>- white cold drink</dd>
    </dl>

    I am a little unsure as to how to best achieve this although I have a hunch it is through a custom Data Type.

    Can anyone help please?

  • Matt Brailsford 4124 posts 22221 karma points MVP 9x c-trib
    Jul 24, 2010 @ 01:44
    Matt Brailsford
    0

    Hey Brendon,

    Could probably do with a little more info, but yea, you could achieve this with a custom data type. Shouldn't be too dificuilt to achieve.

    Take a look at this blog post for an idea on how you could do this:

    http://www.nibble.be/?p=62

    Another option, though not sure whether it would be a bit overkill, you could use the repeatable custom content package

    http://our.umbraco.org/projects/backoffice-extensions/repeatable-custom-content

    You should be able to make a title and description field, and allow editors to add as many items as they like, you'd then just format this as a dl in your XSLT.

    Matt

  • Brendan Rice 538 posts 1101 karma points
    Jul 24, 2010 @ 02:03
    Brendan Rice
    0

    Sweet Matt, thansk for the reply.

    Just looked at the Repeatable Custom Content Package, it looks like it will be the quickest way for me to get what I want and a whole lot more.

    Thanks again,

     

    B

Please Sign in or register to post replies

Write your reply to:

Draft