Jump to content

Page List Auto Expand


Robin S
 Share

Recommended Posts

Page List Auto Expand

Automatically expands the next adjacent page when moving a page in Page List.

Usage

As you are moving a page in Page List, if you position the yellow move placeholder above a Page List item for a configurable period of time (default is 1000 milliseconds) then that item will expand, allowing the moving page to be dropped as child page.

auto-expand

Configuration

In the module config you can set the delay before the Page List item adjacent to the move placeholder will be automatically expanded.

delay

Restricting the module to certain roles

If you want to restrict the module functionality to only certain roles then create a new permission named page-list-auto-expand. If that permission exists then a user's role must have that permission or the module will not have an effect in Page List.

 

https://github.com/Toutouwai/PageListAutoExpand
https://processwire.com/modules/page-list-auto-expand/

  • Like 14
  • Thanks 5
Link to comment
Share on other sites

This is one of the rare things that are not instantly intuitive to I guess 99% of my clients!

Have you considered adding a PR @Robin S ? Imho that's really an essential feature, thx for creating and sharing it! Just added it to RockMigrations default profile ? 

  • Like 7
Link to comment
Share on other sites

On 7/7/2023 at 7:49 AM, bernhard said:

Have you considered adding a PR @Robin S ?

The ProcessPageList.js is pretty complex and there are things in it I don't understand. I had to do some some rather hacky stuff to get the module working, but the stakes are lower in a module because each person can decide if they want the functionality and are willing to install a beta module to get it. Whereas if I make changes to the core in a PR it might break something for everyone. So I'll wait a while to see if any issues crop up before considering a PR.

  • Like 4
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...