how to restrict particular user group from re ordering in list view of site console | Community
Skip to main content
ashisht85509954
Level 2
December 3, 2017
Solved

how to restrict particular user group from re ordering in list view of site console

  • December 3, 2017
  • 7 replies
  • 2712 views

I need to restrict some user groups so that they can't perform page re ordering action in sites console list view.

I am using AEM 6.3 version, early help is much appreciated

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ashisht85509954

Thanks buddy, you reply gave a good clue to find the solution.

I did the same thing as you suggested, then that button(dotted area) was disappeared but then we could do the re ordering on whole row so nothing changed,.

But in the same jsp around line number 136 (attrs.add("is", "coral-table-row");), is responsible for drag and drop feature. I have put the condition there and it worked for me.

7 replies

smacdonald2008
Level 10
December 3, 2017

Please post a screen shot of the view you want to modify in sites console.

ashisht85509954
Level 2
December 4, 2017

Thanks for response.

Actually my client want to restrict re-ordering feature(site console - list view) for a particular group, so that that group is not able to re-order the pages.

smacdonald2008
Level 10
December 4, 2017

This makes the question more clear. I am not aware of any docs for this specific re-ordering use caset. However- we will check internally.

In meantime - if any community members have implemented a similar use case - please provide details.

smacdonald2008
Level 10
December 4, 2017

I checked with some internal ppl - they replied:

I don’t think jcr has permission set to restrict just reordering (something like jcr:reorderChildNodes does not exist, similar to jcr:addChildNodes)

Though it can be achieve using simple UI extension

Also if reordering is not necessary its always best to use oak:Unstructured

ashisht85509954
Level 2
December 4, 2017

Alternatively, do we have any way to hide list view option for particular user group?

I tried overlaying ‘/libs/wcm/core/content/sites/jcr:content/views/list’ using rendercondition but it didn't work.

rmahendra
Adobe Employee
Adobe Employee
December 5, 2017

The reordering element is hard coded in the row jsp. You can add a condition by overlaying /libs/cq/gui/components/coral/admin/page/row/row.jsp

Note: When you are installing FP|SP|CFP or Upgrading, make sure you merge the changes if there are any from /libs to your file.

ashisht85509954
ashisht85509954AuthorAccepted solution
Level 2
December 6, 2017

Thanks buddy, you reply gave a good clue to find the solution.

I did the same thing as you suggested, then that button(dotted area) was disappeared but then we could do the re ordering on whole row so nothing changed,.

But in the same jsp around line number 136 (attrs.add("is", "coral-table-row");), is responsible for drag and drop feature. I have put the condition there and it worked for me.