Jump to content

Pagetree Add New Child Reverse (on Top)


horst
 Share

Recommended Posts

  On 8/24/2017 at 3:28 PM, PWaddict said:

I just test it and it works great. I replaced "saved" with "published" otherwise everytime my client will edit the pages sorting will applied. So for PW 3.0.46+ no need this module.

Expand  

This could be part of AOS, perhaps with an option what templates to include.

  • Like 4
Link to comment
Share on other sites

  On 8/24/2017 at 4:28 PM, adrian said:

Sounds like a great idea.

I would still perhaps suggest Pages::added, rather than Pages::published though - what does everyone else think? 

Expand  

You're right. I replaced "published" with "added" and it's even better cause now the unpublished ones are getting sorted properly too. Thank you.

  On 8/24/2017 at 4:09 PM, tpr said:

This could be part of AOS, perhaps with an option what templates to include.

Expand  

What AOS means?

  • Like 2
Link to comment
Share on other sites

  On 8/24/2017 at 10:51 PM, horst said:

Embedded into AOS is pretty good!

Wondering why not use this hook: https://github.com/horst-n/PageTreeAddNewChildsReverse/blob/master/PageTreeAddNewChildsReverse.module#L48

 

Expand  

Pages::setupNew won't work for this because the page doesn't exist yet when you try to sort it to the first (0) position.

  • Like 1
Link to comment
Share on other sites

  • 3 years 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...