-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elemental 4.6 broken on pages with multiple ElementalAreas #926
Comments
Since green "Add block" button inserts new block to the top of the list we decided to temporarily hide first blue insert here link with css until this is fixed: #AddBlockHoverBar_0
{
display: none !important;
} |
|
Good investigation. The HoverBar got added because having to add a block and move it around to its intended position was an annoyance to content authors. I don't think removing the Hover bar is an viable option. If I'm understanding you correctly, the problem is that
If you we just update the ID of those hover bar to be unique that should fix the problem. Since we area already have an
For reference, here's the last bit of substantial work with this on the hover bar #704 |
All done |
We're using multiple ElemetalAreas on pages. Everything worked fine until we upgraded SS to 4.8 and Elemental to 4.6 (we were using SS 4.6 and Elemental 4.4 before).
Problem occurs when multiple Elemental Areas on single page contain at least one Elemental and you try to use "insert here" link (blue-lined plus) and you try to add new block to the top of the list.
Video:
Test case:
install
composer create-project silverstripe/installer ./ss4.elementals
add elemental
composer require dnadesign/silverstripe-elemental 4.6
add extension
app/_config/elemental.yml
:build database
/dev/build?flush
login to CMS and open/create new page
add new content block to first elemental area and then add new content block to second elemental area
try to add new block to first elemental area by using "insert here" option and add it to first place. You can see both "insert here" links are activated from first and second elemental areas and two popups are open. Selecting Element type would (in most cases) create new element in second elemental area although you were trying to add one to the first block.
Acceptance criteria
Pull request
FIX Hoverbar ID made uniq - #969
Travis broken build
https://app.travis-ci.com/github/silverstripe/silverstripe-elemental/jobs/566559693
The text was updated successfully, but these errors were encountered: