Unable to load block into composer. You must edit this content from within the context of the page.6 users found helpful
I added a Content block to the page defaults (with the 'Main' content area). Added a Content thingy in the 'Edit Form' spot. Do I need to link them somehow?
At the Page Types dashboard page, select 'Output' for the page type you are editing.
Select 'Edit Defaults' for the page template/s this page type can output to.
Put the page in edit mode and add a 'Composer Control' block (its right at the bottom).
It will ask you to select a Composer control, select your Content block.
Publish your changes!
You should see a message saying "The Content page type composer form element will output its contents here (Block ID xxx)"
I wish there was a complete & concise description of Composer in 5.7 - but as always with C5, the information is limited and scattered across different pages and sections... At least I cannot find any complete page in the official docs. Does anyone know any good source?
Update: A useful Howto is herehttps://www.concrete5.org/documentation/how-tos/editors/setup-a-simp... but I still wonder why official docs give only scarce hints on Composer usage...
In fact, I just pulled down a copy of 18.104.22.168 and did a fresh install with the sample content, and on this new instance I see the same issue if I go to the Composer of a Portfolio Project or Blog Entry.
It seems there was a disconnect between my page, and the Page Type (I had made modifications to the Page Type after creating a page). Once I deleted the page, and recreated it, all the blocks and composer fields showed correctly. It sucks that connection is frail, but at least I know what to look out for now.
Will have to go and recreate a whole bunch of pages... :-(
I created a GitHub issue requesting this feature. Please leave a comment on the issue page to show that there is interest.
Any workaround at the moment until it is available in the core? I'm running 8.2.1
Thanks in Advance.
And I want to put specific content for each page
The template structure is like this:
-header(from a php file in elements included in the view),
-body(here I want to put the content dinamically),
-footer(from a php file in elements included in the view)
The problems I have are these:
1.I can't put any content on the homepage(this error shows: `Unable to load block into composer. You must edit this content from within the context of the page.`)
2.I don't know how to display the content block that I can put in composer in my template file
3.I'm very new to this framework and I'm still trying to understand it's structure
Just to clarify, did you create page type and configured the composer form...etc.?
A good starting point for anyone new to c5 theme building is Cloneamental (free). Its identical to the core Elemental theme but in a package, so it has all the infrastructure you need in your headers and footers to make it work with concrete5.