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
SpunkySpunky 

CMSForce Application

Hi, I hope someone can help me with this app because I'm so excited to have found it. 

 

I downloaded it to my sandbox and am carefully following the instructions but am completely stumped when it comes to Content Blocks. 

 

If I create a new page item, it requires an entry for "ContentBlockItem" which is a lookup field but for the life of me I can't figure out where the lookup table is. 

 

Does anyone know the answer to this 

Best Answer chosen by Admin (Salesforce Developers) 
David VPDavid VP

Check your installation steps again.

 

You might have forgotten to override the 'new' and 'edit' buttons correctly. I think you're looking at the 'raw' object page and not the Visualforce edit page that needs to show up.

 

Best regards,

 

David

All Answers

bmabma

Use the "New Page Item" button to create the ContentBlockItem, and it will fill in the form for you. After you created the item, you can click "Include Existing Item" to re-use the ContentBlock you have created.

 

Here is the step:

1. go to the page item tab

2. select "All" on the drop-list and click the "Go" button next to it

3. select one of your page item to view the detail

4. click on the "New Page Item" - (this would bring you to the page to create a new ContentBlockItem)

 

SpunkySpunky

Thanks. That is exactly where I get stuck. There are 4 fields on this page

 

1)Page name (prefilled)

2)Contentblockitem (this is a lookup that has no values in the lookup filter even with a wild card, I can't create a new value and it's a required filled) 

3)Display in Contentblock 

4)Order 

 

How, where do i make a contentblockitem entry? 

 

 

bmabma

You will need to create a template page first.

 

Inside the template page, you would need to include a component calls "contentblock" and includes a name for it. This is the name that's going to show up as choices for "Display in ContentBlock".

 

Here is an example:

 

<apex:page> <c:contentblock name="body"/> </apex:page>

 

This would create 1 contentBlock names "body" for you to use.

 

 

BulentBulent

Fields on the content block create page are:

 

 

  • ContentBlockItem Name 
  • Page = lookup to the page (required)
  • Display in Content Block 
  • Order 
  • HTML content 
 
I do not see the lookup you mentioned 

 

David VPDavid VP

Check your installation steps again.

 

You might have forgotten to override the 'new' and 'edit' buttons correctly. I think you're looking at the 'raw' object page and not the Visualforce edit page that needs to show up.

 

Best regards,

 

David

This was selected as the best answer
SpunkySpunky
Yes! That was it. Thank you!
SpunkySpunky
Thanks for the feedback.