Copied to clipboard

Flag this post as spam?

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


  • Frederik T 242 posts 373 karma points
    Mar 24, 2012 @ 21:05
    Frederik T
    0

    Quick question about templates and inheritance

    I feel so silly for asking about this, what seems like fundamental knowledge. I tried searching around but i didnt know what to look for so here goes.

    I will try and make it simple: On the front/homepage node, i have set up a tab with three rich text editors. The text written there is supposed to go into three different sidebars on the site, and i want that text to be consistent across all pages under the homepage (which is essentially every page). The sidebars are part of the master template. There is also only two document types, frontpage and basic text page. But they are seperate from eachother and there are no inheritance between them.

    How do i accomplish this?

  • Grant Thomas 291 posts 324 karma points
    Mar 25, 2012 @ 00:09
    Grant Thomas
    0

    Please state the version of your Umbraco instance.

    Ultimately you'd find the needed page by id, or use a Macro and recursive searching of the node tree to find the properties, and hence the values; the principles staythe same, but the realisation of it changes between versions.

  • Frederik T 242 posts 373 karma points
    Mar 25, 2012 @ 00:56
    Frederik T
    0

    It's version 4.7.1.1. Never knew there was that much of a difference.

    I eventually got this solution

    <umbraco:Item runat="server" field="leftColumn" recursive="true" />

    Which works, but i take it there is something easier? I could do a macro of course but i figured it was too much work for something i had a feeling would be easier. But just weighing my options.

  • Grant Thomas 291 posts 324 karma points
    Mar 25, 2012 @ 01:21
    Grant Thomas
    0

    There you go, that's likely the easiest way to go about it.

  • Frederik T 242 posts 373 karma points
    Mar 25, 2012 @ 01:41
    Frederik T
    0

    Ok, thank you for your trouble :)

Please Sign in or register to post replies

Write your reply to:

Draft