Hierarchy feature is enabled by default in Drupal 8. If you create a basic view, there is no way to disable it.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

zessx created an issue. See original summary.

zessx’s picture

Issue summary: View changes
mkdok’s picture

Version: 8.x-1.0 » 8.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new26.44 KB
new1.77 KB

Hello,

I've already written patch that allows to disable hierarchy. You can do that in "Draggable field" settings.

Thanks.

mkdok’s picture

StatusFileSize
new1.77 KB

Patch with spacing fixes.

tandroid’s picture

Status: Needs review » Reviewed & tested by the community

#4 works as expected. Thanks mkdok!

phily’s picture

#4 works with Drupal 8.3.1 and DraggableViews 8.x-1.0
Thanks

istryker’s picture

Title: Cannot disable hierarchy » Disable hierarchy
Category: Bug report » Task
Issue summary: View changes
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new2.48 KB

You patch works great, however I think more discussion is need around this topic.

I think hierarchy should be disable by default. If you enable hierarchy it should work. Currently, hierarchy in 8.x does not work, so I think we should disable it by default and hide the checkbox for now. Later we can change the hidden form item to a checkbox.

istryker’s picture

Status: Needs review » Needs work

Patch #7 needs to be re-rolled. Currently hierarchy dragging works in 8.x-1.0 but not 8.x-1.x. One of the patches broke it. I tried re-roll, but I could not see the hierarchy enable checkbox.....something is wrong.

temkin’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
Status: Needs work » Needs review
StatusFileSize
new2.71 KB

Here is a re-roll against the 2.x branch. After this patch and one more that's coming separately to support Paragraphs, enabling and disabling hierarchies and the hierarchy functionality itself worked fine.

olmyr made their first commit to this issue’s fork.

olmyr’s picture

Version: 2.0.x-dev » 2.1.4
olmyr’s picture

StatusFileSize
new2.74 KB

Hello,

olmyr changed the visibility of the branch 2846336-disable-hierarchy to hidden.

olmyr’s picture

olmyr’s picture

Status: Needs review » Fixed

Hello,

The issue could be closed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.