function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DataDarling80DataDarling80 

Messed up my Site Template

So I'm a beginner at this first of all, enthusiastic but not very good.  I had added my logo & style sheet as static resources and header & footer as components. At one point my template was looking good & now it just has a header.  See below:

 

<apex:page showHeader="false" id="SiteTemplate">
<table border="1" width="100%" height="100%">
  <apex:stylesheet value="{!$Resource.OSFStyleSheet}"/>
  <apex:insert name="siteheader">
    <c:SiteFooter />
    <site:googleAnalyticsTracking />
  </apex:insert>
</table>
</apex:page>

What I do wrong?

 

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent

try the following, seems like you don't have a body section in the template where the actual page content would be rendered in the body section

 

 

<apex:page showHeader="false" id="SiteTemplate">

<table border="1" width="100%" height="100%">

<apex:stylesheet value="{!$Resource.OSFStyleSheet}"/>

<apex:insert name="header">

<c:SiteHeader />

</apex:insert>

<apex:insert name="body"/>

<apex:insert name="footer">

<c:SiteFooter />

<site:googleAnalyticsTracking />

</apex:insert>

</table>

</apex:page>

 

 

 

Message Edited by Bulent on 01-19-2010 10:53 AM