Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
I also have 2 Document Types:
1) Home - applies to the Home Template
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?
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="$homeNode/footerTitle"/><xsl:value-of select="$homeNode/AnotherField"/>
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:
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?
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!
Hi Guys, could you help me out with this Thread?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted