Copied to clipboard

Flag this post as spam?

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

  • Owen Hope 119 posts 140 karma points
    Nov 11, 2010 @ 01:05
    Owen Hope

    Editable Footer - Edit in one tab for all pages.


    So I'm fairly new to Umbraco and have a couple questions.

    I have been trying to make a editable Footer for my site. It has to function so that I can click on the root of my Website and change the footer and that gets applied to all pages (all pages have the footer).

    Now currently my site has three templates:

    1) Master - stuff that stays the same, content place holders for where things are dynamic

    2)Home Page - similar to content page, but different body layout

    3)Content Page 

    I also have 2 Document Types:

    1) Home - applies to the Home Template

    2) Content 


    Now if I add the footer tab to either one of these document types on creation of every new "page" content or home I must copy the footer images/text. Also if I want to change the footer I must do so in every page.

    How can I lay out my site so that I can have a tab that applies to every page on the site regardless of what document type or template thats used?



  • Rich Green 2246 posts 4008 karma points
    Nov 11, 2010 @ 01:21
    Rich Green

    Hi Owen,

    The most straight forward way is to create another tab on your Home document type named "Footer" then put all your footer fields you want on here (there will only be one Home node, so it's a good place to put content that there is only one of, like the footer)

    Then in your xslt on your master template you can render the footer.

    Something like this (though you do not mention which version of Umbraco you are using) change 1100 for the id of your home node.

    <xsl:variable name="homeNode" select="umbraco.library:GetXmlNodeById(1100)"/>
    <xsl:value-of select="$
    <xsl:value-of select="$homeNode/AnotherField"/>


  • Owen Hope 119 posts 140 karma points
    Nov 11, 2010 @ 01:38
    Owen Hope

    Hi Rich,

    Thanks for your reply, Im using Umbraco 4.5.2.

    I followed your instructions however haven't quite got the results I am looking for yet, here's what I did:

    • Added a new Tab to the "Home" DocType
    • Added a new Richtext box with Alias "footerSponsors"
    • Added the following to my Master Template
    • <xsl:variable name="homeNode" select="umbraco.library:GetXmlNodeById(1047)"/>
      <xsl:value-of select="$homeNode/footerSponsors"/>
    • Added "Some Text" to my Home Page footer tab
    Am I missing something?
    Its important to note that I have a Master Template, that has Home and Content as children.

  • Rich Green 2246 posts 4008 karma points
    Nov 11, 2010 @ 01:41
    Rich Green

    Hi Owen,

    You need to add the code to a XSLT file and create a macro, then insert the macro into the master template, is this what you've done?


  • Owen Hope 119 posts 140 karma points
    Nov 11, 2010 @ 01:46
    Owen Hope

    Hi Rich

    Haha my bad, I added the XSLT thinking it was inline! I'm learning!

    Done, and its working properly, thank you very much for your help, it is much appreciated!


  • Djan Blom 99 posts 161 karma points
    Mar 18, 2011 @ 09:00
    Djan Blom

    Hi Guys, could you help me out with this Thread?



Please Sign in or register to post replies

Write your reply to: