Unable to load block into composer. You must edit this content from within the context of the page.

Permalink 6 users found helpful
I am sure I am missing something...

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?

Thanks,
C

 
goodnightfirefly replied on at Permalink Best Answer Reply
goodnightfirefly
You have to specify where the Content block is going to be output (since you're adding an actual block through Composer and not just an attribute).

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)"
somesayinice replied on at Permalink Reply
Thanks so much for this
snobo replied on at Permalink Reply
snobo
Thanks a lot for posting this, it just helped me!

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...
daenu replied on at Permalink Reply
daenu
THX!
thadmiller replied on at Permalink Reply
I am experiencing the same issue. I have put the Composer Control block on the page template of the page type, and see the "The Content page type composer form element will output its content here (Block ID xxx)" message.

In fact, I just pulled down a copy of 5.7.3.1 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.

Thad
thadmiller replied on at Permalink Reply
Nevermind...

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.

Thad
simoneast replied on at Permalink Reply
simoneast
Yeah there doesn't seem to be a way to fix this *after* a page has been created and the connection is lost. There's no way to add a "Composer Control" block to an existing page.

Will have to go and recreate a whole bunch of pages... :-(
Chrouglas replied on at Permalink Reply
I would love to see a fix for this... I've created upwards of 50 product pages with a fantastic implementation of the composer system (imho) but client requested that I add another section to add content to. Not going to redo them. Maybe accept that the existing pages will need to be modified in context (edit mode) but I dont even see the composer block there in order to edit it 'manually'.
dustinbrunson replied on at Permalink Reply
I had same issue. First time trying to create a new entry after creating a new page type. Clearing Cache fixed the problem
serot0nin replied on at Permalink Reply
serot0nin
Has there been any update on this? If I want to add something to a page template later down the track and update the composer form, this will essentially "break" composer editability for all pages created before the change. This puts a rather restrictive stranglehold on flexibility, IMO.
serot0nin replied on at Permalink Reply
serot0nin
I've had a think about this and wonder if there might be a way for older pages to refer to the updated template and somehow insert the new controller that's needed. Oh well, for now, I guess it is how it is. Would be cool, though!
MrKDilkington replied on at Permalink Reply
MrKDilkington
I have encountered this issue myself and agree that being able to add blocks to an existing page type would be very useful.

I created a GitHub issue requesting this feature. Please leave a comment on the issue page to show that there is interest.
https://github.com/concrete5/concrete5/issues/4883...
Ta2Ta2 replied on at Permalink Reply
I just ran into this issue today! very frustrated as I have to deal with 30+ pages :(

Any workaround at the moment until it is available in the core? I'm running 8.2.1

Thanks in Advance.
bogdanbaerov replied on at Permalink Reply
I just created a new concrete5 project, I installed a template(which I wanna use for the whole website).
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
Ta2Ta2 replied on at Permalink Reply
Hi,

Just to clarify, did you create page type and configured the composer form...etc.?
JohntheFish replied on at Permalink Reply
JohntheFish
Some blocks are by their very nature incompatible with composer. However, more likely is that your theme does not load necessary elements of concrete5.

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.