5

Here is the basic page. Need to add a HTML header

<apex:page language="en_US" standardStylesheets="false" showHeader="false" cache="true">
   <body>
         <chatteranswers:allfeeds communityId="XYZ"/>
   </body>
</apex:page>
  • 1
    Welcome to the site! When pasting in code samples, be sure to highlight the code and hit the {} button or indent all lines by 4 spaces to get the correct formatting. You're going to need to add more information to this, what are you looking to have in the header? You can just insert any HTML you want above the <chatteranswers> tag... – Matt Lacey Sep 24 '13 at 4:57
3

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_page.htm

From summer 13 salesforce(28.0) gives us ability to control the tag insertion manually.

In apex page there is an attribute called applyHtmlTag .By default this is true and if set to false then tag wont be generated automatically and instead we can manually add the tag in .

For you case as you have not mentioned anything this is set to true by default .

There is also an attribute applyBodyTag and what this does is control generation of tag into generated markup .

In your case since you have not specified by default it sets as per "applyHtmlTag" so its true so you need not put body tag again

<apex:page language="en_US" standardStylesheets="false" showHeader="false"   cache="true">
     <div>
      <h1>here you can add more html</h1>
     </div>
     <chatteranswers:allfeeds communityId="XYZ"/>
     <div>
      <h3>here you can add more html</h3>
     </div>
 </apex:page>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.