Copied to clipboard

Flag this post as spam?

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


  • TomLeads 20 posts 42 karma points
    Feb 16, 2011 @ 14:19
    TomLeads
    0

    Site wide content

    Hi.

    On various of my templates there is a sidebar (side column) which has two boxes, one for an image and one for a a mix of a heading, text and an image.

    I want these boxes to be content managable so the user can edit them at any time.

    What is the best approach for this?

    Thanks

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Feb 16, 2011 @ 14:31
    Ismail Mayat
    0

    If you are using 452 you can use the macro container datatype and create a macro with that content then allow as property on the page macro container then write it out if field is present in the template.

    Regards

    Ismail

  • John C Scott 473 posts 1183 karma points
    Feb 16, 2011 @ 14:44
    John C Scott
    0

    If you store this content in a parent node (maybe on it's own tab for clarity ) you can use the recursive function

     

    EG

    <h2><umbraco:Item field="sitewideSideHeadline" recursive="true" runat="server"/></h2>
    <umbraco:Item field="sitewideSideParagraphrecursive="true" runat="server"/>

    You can do a similar thing with XSLT.

  • TomLeads 20 posts 42 karma points
    Feb 22, 2011 @ 15:47
    TomLeads
    0

    John, thanks, the recursive function did the trick.

    For info: my setup is like this:

    Home
    > Info
    >> About us

    and the site-wide content is in a tab under the Home page, so the recursive function goes back two levels. Nice!

  • Hutch White 89 posts 112 karma points
    Dec 15, 2011 @ 17:48
    Hutch White
    0

    Awesome, this helped me as well.

Please Sign in or register to post replies

Write your reply to:

Draft