Copied to clipboard

Flag this post as spam?

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


  • Dave Carson 1 post 21 karma points
    May 15, 2012 @ 10:20
    Dave Carson
    0

    Multi-Field Property Editor in Umbraco 5

    I've already posted this in Stackoverflow but with no response so have signed up here to see if the experts can point me in the right direction - yes, that was flattery ;-)

    I'm porting an existing, static, website to Umbraco 5 and need some assistance with the development of a multi-field property editor for the backoffice - or an alternative approach.

    Currently the home page has a slide out area which contains six 'blocks', each with the following properties:

    • Background Image URL
    • Heading Text
    • Strapline Text
    • Target URL

    I need to allow the content editor to be able to change any one of these properties on any of the six blocks.

    I could of course just create a tab on my Document Type and list the fields like this:

    • Block 1 Image URL
    • Block 1 Heading Text
    • Block 1 Strapline
    • Block 1 Target URL
    • Block 2 Image URL
    • Block 2 Heading Text
    • etc etc

    but that will result in quite a messy UI.

    What I want is to be able to create a property editor with the four fields and then just add six instances of this onto my new tab - providing (I think) a cleaner and more intuitive UI.

    I've created similar editors using Umbraco 4.x but these also relied on a separate database to hold the custom data (not my design choice btw) but haven't found any decent resource on how to do it in the MVC3 enabled release of Umbraco 5.

Please Sign in or register to post replies

Write your reply to:

Draft