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?
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.
Editable Footer - Edit in one tab for all pages.
Hi,
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?
Thanks!!
Owen
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.
Rich
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:
<xsl:value-of select="$homeNode/footerSponsors"/>
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?
Rich
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!
Owen!
Hi Guys, could you help me out with this Thread?
http://our.umbraco.org/forum/developers/xslt/18530-Xslt-footerText-in-402-
is working on a reply...