Pre-configuring pages for users (composer inadequate)2 users found helpful
Aside from pages that are essentially text based, there are "gallery" pages where you want to show examples of your work (a file set) together with an explanation.
What I want on the page are : the page description (which serves as an introduction) ; then a slideshow which I'm developing ; and, finally, the explanatory text.
Ideally therefore a user should be able to choose a title for their page, write a description, choose a file set for the slideshow (which is completely pre-configured), write their explanatory text and hit publish.
So I have looked at custom page types (enabling, in passing, page attribute selector and my slideshow to appear in composer). What I have discovered is that you can't use either of those blocks in composer, and when you publish / go to edit mode, there isn't even a place holder for the blocks you can't use in composer. You're faced with constructing the page as if it were blank with a bit of text on it.
Which begs the question what is the point of composer ?
I thought of trying stacks only to realise that they only work site wide and not as a generic structure that you fill with information on an individual page.
Is there a way of achieving what I'm looking for ? A pre-configured page with the 3 blocks ready to be filled in ? Knowing these people anything more complicated and they'll give up.
Then go back to the Page Types and click on Output, you can then Edit Defaults and add a "Composer Control" block to the page, which will add the element to that page type, you can rearrange them just like normal blocks.
You still have to add the slideshow and the page description manually in page edit mode.
And if that's the case, the people I'm dealing with have given up and gone home !
"Unable to load block into composer. You must edit this content from within the context of the page. "
For the slider, slideshow, and page attribute viewer... (in Firefox)
Then, as I say, there is no output for these blocks onto the page and I have to edit the page.
The blocks have to be setup properly for Composer, but that is the responsibility of the developer.
All composer.php seems to do is enable a field and label in the composer form. It doesn't seem to enable any functionality.
If it is possible to enable functionality the question is, then, how ?
I'm actually playing with the "Portfolio Project" page type because it is pretty close to what I want - and I'd got rid of the original instance of Image Slider (because I find them unbelievably irritating) - creating a new instance doesn't give me back the functionality that your screen-grab shows.
Which is curious.
As it stands, it seems any block that requires a selection process doesn't work in composer... unless composer.php can introduce that (it works for "page location" for example)
I'm going ferreting...
$view->inc('form_setup_html.php', array('view' => $view));
Which I take to mean show the configuration dialogue (that you find in page edit mode) in the composer form.
Which it isn't.
You have to go right to the bottom of the blocks list (when in page layout mode) to find the controller block and then select from the drop down menu to add the block.
Only then will it show correctly in composer. So composer must check with the template if the content has somewhere to go...
Still can't get my slideshow to work with it though.
But that's another question.
I seem to have cracked it... You have to go right to the bottom of the blocks list (when in page layout mode) to find the controller block and then select from the drop down menu to add the block. Only then will it show correctly in composer. So composer must check with the template if the content has somewhere to go...
I am in the same boat as you NickN with my users needing things to be simple and this helped me out with adding a image block into composer, Thanks!
Would be nice if there was some documentation focused just on the Composer implementation.