Edit mode destroy my layout
Permalink 1 user found helpful
Hi everybody,
I have a real problem today : I chooses concrete5 for the beauty of its edit mode where you can see exactly how things changed, however, my layout (column horizontal layout with media queries ) is totally destroyed on edit mode ?
Any similar problem ?
Any fix ?
Thx !
I have a real problem today : I chooses concrete5 for the beauty of its edit mode where you can see exactly how things changed, however, my layout (column horizontal layout with media queries ) is totally destroyed on edit mode ?
Any similar problem ?
Any fix ?
Thx !
Could you attach a screenshot so we can see the problem?
I wish I could, but my client doesn't allow me to do so, does edit mode deactivate some javascript that is applied to the page ??
Thx for your answers !
Thx for your answers !
Well I found the problem, is it possible to deactivate the wrapping of certain blocks that have a certain class ?
By default they are all wrapped with a .ccm-block div I think, I need it to disappear some blocks ...
By default they are all wrapped with a .ccm-block div I think, I need it to disappear some blocks ...
If you take those away, then editing those areas won't work. If you don't care about being able to edit an area, you can call $a->disableControls() before $a->display($c). Otherwise I don't think there's anything you can do about it (except disable the media query stuff so the page still works, even if the layout then isn't correct).
Is it possible to create layouts with dynamic areas ? I mean a template where the user could add custom numbers of areas ?
That would definitely help me !
In fact the problem is that I created a block that open sections, therefore, when it is wrapped by concrete5 in edit mode, the blocks it should contain are not wrapped in it, that is what destroyed my layout.
I actually create a javascript function to recreate my layout with multiples appendTo but then I can't reorder blocks anymore ...
Thx by advance
That would definitely help me !
In fact the problem is that I created a block that open sections, therefore, when it is wrapped by concrete5 in edit mode, the blocks it should contain are not wrapped in it, that is what destroyed my layout.
I actually create a javascript function to recreate my layout with multiples appendTo but then I can't reorder blocks anymore ...
Thx by advance
The "Area Layouts" feature creates dynamic areas -- click on "Add to Main" (or whatever the area is called) and choose "Layout" from the popup menu.
Maybe your layout, before you adapted it to C5, had a mismatched HTML tag, missing a </div> for example. Ok in normal display, but in edit mode further <div>s are put round it, so now everything becomes skewed.