+ Start a Discussion

CMSForce - deploying a BlankTemplate page with a custom VF Page

I am trying to create a page using the BlankTemplate based on a VF page I created with a custom controller using CMSForce.  I have read and re-read the documention and can't seem to get it to work in sandbox or production.  The page I created is below.  What am I missing? Thank you for your help!



<apex:page controller="CourseList">
    <apex:pageBlock >
    <apex:dataTable value="{!Courses}" var="CourseList" width="100%" >
     <apex:column >
      <apex:facet name="header"><b>Class Name</b></apex:facet>
     <apex:column >
       <apex:facet name="header"><b>Class Description</b></apex:facet>
     <apex:column >
      <apex:facet name="header"><b>Date of Class</b></apex:facet>
     <apex:column >
      <apex:facet name="header"><b>Class Location</b></apex:facet>



David VPDavid VP

The BlankTemplate in CMSForce is meant yo be used 'as is' : it's just a blank template with nothing on it except a <c:contentblock../> tag (no headers, footers, ...), meaning that you can use it to create a web page 'from scratch'. For that you use the WYSYWYG HTML editor in CMSForce and using tables, images, text etc... in there you just build out your web page.


I don't see how you're trying to marry that with the custom VisualForce page you show in your post.

There even isn't a <c:contentblock ../> tag in there so your page can not be used as a template in CMSForce.


Could you explain what exactly you're trying to achieve?


Hi David,


Thanks for the reply, sorry I wasn't clear. 


I basically want the VF Page to be part of my website with no other graphics, content, etc, just the  content that I'm pulling from my system. 


Maybe what I don't understand is out to integrate my VF Page into the CMSForce system?   Or how to get rid of the Force.com logo, etc that loads with it?  





David VPDavid VP


Sites is built to be used with VisualForce pages in the first place. CMSForce is just a tool for business users that don't have the skills to create the VisualForce pages themselves.


If you want your page to appear in your site, just point to it.








I am trying something similar and when i type on the browser http://tvmcompany.force.com/MediaPortal/Web2Lead20 is asks for login info for SFDC...


I had actually created the vf page via CMS, but cannot seem to get them to publish right on the sites ...any help is greatly appreciated...


I have a site called mediaportal

and the home page is set to a vfpage called web2lead20


the code for the vfp is:

<apex:page showheader="false" sidebar="false" >
<apex:iframe src="http://na2.salesforce.com/apex/page?pageid=a0S40000000ssuc"/>

 where the source of the iframe is the preview page template view of the original cmsforce page I had created from the cms interface...I wanted to have several landing pages within 1 site but i cannot get around  as to how to do it in CMSForce...pelase help[, I am a bit behind in an internal project  for sites landing pages...





 Enrique  enrique.ortiz@tvmcompany.com/17875671824 voice


David VPDavid VP

I see a couple of things that don't look right :





Should be : http://tvmcompany.force.com/MediaPortal/page?pageid=a0S40000000ssucEAA if you want to reference the page directly.

Having said that : since you've set it as your homepage, you can just navigate to your site and CMSForce will switch automatically to that page (I tested on your site and you seem to have done that correctly. Just navigate to your site's address : http://tvmcompany.force.com/MediaPortal ). The content and the Web Form you've created show up just fine then).



I don't know what you're using the VF page/iframe code for but the url in the iframe is definitely not going to work in Sites :


That's an internal url for logged in users. The public url should look like http://tvmcompany.force.com/MediaPortal/page?pageid=a0S40000000ssucEAA