5.7 Composer Doesn't Work from In-Page Menu

Permalink
Hi all,

Using Composer in 5.7 for the first time and am having a strange problem. I've created a small blog setup on an existing site. If I go to the dashboard > sitemap and add a page from the sitemap composer loads correctly with my configured composer fields.

If I'm on the site front-end and use the 'pages' icon (top left) and add a page via that menu, then composer doesn't seem to load properly. I'm left only with the save/discard menu at the bottom of the page, but no composer entry fields.

I've tried taking the template code back to nothing but the C5 header/footer calls and it does the same thing, so am fairly sure not a theme conflict. See screengrab attached.

The only console error I get is an advisory from jquery.js when composer fires:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, checkhttp://xhr.spec.whatwg.org/.


Any ideas?

1 Attachment

mrjcgoodwin
 
mrjcgoodwin replied on at Permalink Reply
mrjcgoodwin
As I scratch the surface here I'm find more odd behaviour.

In composer, (when it is working), if I click on the insert image icon in redactor/text editor, the image dialog box is appearing behind the composer form and can only be seen if you drag the composer box out of the way. A z-index issue?
mrjcgoodwin replied on at Permalink Reply
mrjcgoodwin
Confirmed: The insert image modal is definitely loading with a lower z-index than the composer form modal - can anyone else recreate?

Update: Possible known bug:https://www.concrete5.org/developers/bugs/5-7-3-1/z-index-conflict-w...

Original issue at top of thread still stands.
mrjcgoodwin replied on at Permalink Reply
mrjcgoodwin
Bit of an echo chamber here - but hopefully someone will point me in the right direction!...

Back to the original issue - It looks as though the composer form is loading, but for some reason is hidden:

It is loading with:
.div.ccm-panel-detail is display:hidden

If I unhide it the composer window shows. Is this my installation/site? Or is this what everyone else is experiencing?
andrew replied on at Permalink Best Answer Reply
andrew
Check the theme documentation

http://documentation.concrete5.org/developers/designing-for-concret...

Have you made sure to follow this particular instruction?

"We need to add a container DIV with the proper classes around the content in the page, in order for panels to be able to shift content around.

Add a DIV around the content of the page (typically right after the opening of the body tag and before the closing of the body tag) and give it this class

<div class="<?= $c->getPageWrapperClass() ?>">"

I'm almost positive this will fix the problems you're encountering.
mrjcgoodwin replied on at Permalink Reply
mrjcgoodwin
THANK YOU A MILLION TIMES! Was pulling my hair out on this one yesterday!
Thinking back, this was the first theme we made with 5.7 and hadn't even noticed the wrapper had been missed off! (Old habits die hard I guess!)

Can't believe though no other problems had manifested as a result of this.

Thanks again!
J
mrjcgoodwin replied on at Permalink Reply
mrjcgoodwin
Incidentally this doesn't seem to fix the z-index issue in the back end in case anyone else is reading this. But it's logged as a bug already.