Updating website content with iframe
Right now, I’m in charge of updating the community design and another person updating our Saleforce community. Both community have the same header and footer design which matches our company website. However, my company website will be updating the header and footer every 2-3 months. I want to use iframe to make the update easier for the both of us. Can this be done in Lithium? If so, how? Please provide me the steps to accomplish this task.
Thanks!
skylinegtr - This is not a bad idea at all and is something we have implemented in one of the communities earlier. A live example of this is here, the header and footer in this page are called in an iFrame for the very same reason which you mentioned, to keep it updated. Another example is here
You can check the source code of both the pages and will get the required code. Add the code for header iFrame in the header in wrapper and footer goes in the footer content area.
Header: <iframe scrolling="no" frameborder="0" allowtransparency="true" src="http://www.naughtydog.com/site/jive_head_min/" class="header-frame"></iframe> Footer: <div class="ud-ftr"><iframe scrolling="no" frameborder="0" allowtransparency="true" src="http://www.naughtydog.com/site/jive_footer/" class="footer-frame"></iframe></div>
There are many communities which are using this but just make sure that you keep in check that the dimensions (width and height) goes with your design even after they update. Otherwise, there are no real issue which we have faced. These are running for almost 3 years now without any issues.
I hope this helps.