Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Bloqs nesting and dragging issues

Status Resolved
Add-on / Version Bloqs 4.9.0
Severity
EE Version 6.0.6

James Brown

Oct 17, 2021

I’m having quite a few nesting and dragging issues that I at least wanted to bubble up.

In my example I have a setup where the Section bloq is set to “Can only be root” and requires at least 1 child. Then the Basic Content bloq is set to “Can’t be root and must be a child of another bloq”. I created some videos that at least partially show some of the problems I have been having.

Nesting Issue
http://daves44.sg-host.com/Nesting-issue.mov
I create the Section bloq and it correctly shows an error since it needs a child. I then create the Basic Content bloq in the root as well. First you can see that no error pops up to say needs to be nested in a parent bloq. The second issue is that I can’t seem to drag the Basic Content bloq into the Section bloq to nest it. I did find that if I create a child bloq under the section bloq, then I’m able to drag that Basic Content bloq from the root to inside the Content bloq.

The next 2 issues are a few of the issues I’ve seen trying to drag bloqs around to reorder.

Disappearing Bloqs
http://daves44.sg-host.com/Disappearing-bloqs.mov
In this case I’m trying to change the order of my section bloqs. In general it is super difficult to achieve this without issues. Although occasionally I have gotten it to work. In this case the bloq I was moving disappeared completely.

Dragging Problems
http://daves44.sg-host.com/Disappearing-bloqs.mov
Here’s just some examples of trying to move those Sections around. You can see at times it tries to nest inside the other bloq (causing a whole other problem of trying to get it out), not registering the target area, etc.

#1

BoldMinded (Brian)

James, thanks for the videos. I’m aware that the drag and dropping isn’t perfect, but since I’m using the nesting & drag and drop class included with EE there isn’t a ton I can do about this. Technically I’m using newer, open source version of the same script that is native to EE. This is on my list of things to look into, but unfortunately it’s probably not something that is going to be addressed in the coming days or weeks. This is a longer term thing to address. The first video where you dragged the first item, that seemed excessive, almost like you were trying to break it intentionally by dragging it quickly and releasing the drag too soon. Finding the drop target can be finicky, but sometimes you have to be a little more delicate. There are actually very very few good open source drag and drop scripts that also include nesting functionality. I explored using the same script that Structure uses, but for reasons I can’t remember right now I couldn’t use it. I’ll give it another look though.

#2

James Brown

Hey Brian- Sorry if it seemed like I was trying to break it. More just trying to illustrate quickly in the video what I had been noticing. With the first video the point was that I’m not able to drag and nest into that Section block until there’s an existing child block already in there. So if they were both at the root no matter how slow or deliberate I dragged, I couldn’t get it to nest. Then also the fact that there was no nesting rule error being displayed for the Basic Content bloq that was at the root.

I definitely think the bloqs disappearing completely during a drag and drop operation is a bug though, correct?

The last one I was trying to quickly show I was definitely exaggerating a lot of the issues I had been seeing. I definitely understand the challenge of web based drag and drop type functionality. Even when I go very slow and deliberate I end up having a lot of frustrations moving the order, or with the root level blocks ending up getting nested inside the other one and then having difficulties getting it out of there.

#3

BoldMinded (Brian)

Comment has been marked private.

#4

BoldMinded (Brian)

Comment has been marked private.

#5

BoldMinded (Brian)

James, have you had a chance to test the build I sent?

#6

James Brown

Hey Brian- I appreciate the amazingly fast turnaround! I haven’t had a chance to test it out quite yet. I have 2 sites in development. Would you consider this a relatively safe update? I know you mentioned backing up the database.

James

#7

BoldMinded (Brian)

It’s s safe update if you’re going from 4.9.1 to 4.10 b/c it’s all front-end changes. If you’re still on 4.9.0 or earlier then yes I recommend backing up your db b/c it might try to perform an update.

#8

James Brown

ok, fair enough. I’ll give it a shot this evening. I need to get some work done on these 2 sites before I play around with it.

#9

BoldMinded (Brian)

4.10 was recently released which should fix these issues.

Login to reply