Copied to clipboard

Flag this post as spam?

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


  • Dominic Kelly 114 posts 133 karma points
    Jan 13, 2012 @ 14:43
    Dominic Kelly
    0

    Macro Container

    I'm very new to Umbraco and could do with some guidance on using Macro Containers.

    This is how I think they should work:

    In Developer section:

    Create Scripting File and Macro (with Parameters) tick 'Show'. 

    Create a Data Type 'Macro Container' and allow Macro created in previous step.

    In Settings section:

    • Create a Document Type.
    • Add the Macro Container Data Type created in previous step as a property.

    In the Content Section:

    • Create a page with a Document Type created in previous steps
    • FIll out Macro Container parameters

    In the Macro Razor file:

    • Programatically display the content of the macro container.
    • This kind of works, and I think the idea is to allow Content Managers to add an indefinate number of macros to the page as they want.
    • However, for this to be truely useful I'd like to be able to select images and links from the page. At the moment, Media Picker isn't even an option, and Content Picker appears but is broken (the pop-up doesn't work).
    • Am I totally barking up the wrong tree here?

    My ultimate goal is for:

    • Content editor creates new page
    • Content editor adds main copy via a standard rich text editor in the middle column of the page.
    • Content editor wants to add some calls to action to the right hand side of the page. This page may have 1 - 10 calls to action, and each call to action is specific to this page. The content of the call to action will be a simple image with a text caption and a link.

    I'm aware that the other way of achieving this is to have child 'pages' called calls-to-action beneath the current actual page which I can display via Razor. However, this looks as if it will clutter up the main site stree. It makes more sense to me to have only real pages in the site tree, rather than pages and other objects such as images, calls to actions, lists of links etc.

     

  • Dominic Kelly 114 posts 133 karma points
    Jan 17, 2012 @ 18:55
    Dominic Kelly
    0

    Decided not to use this in the end...

  • 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