Skip to content

Commit

Permalink
fix: rename pageadd folder to general
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed May 13, 2024
1 parent 89fb442 commit 19cee0b
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

2 comments on commit 19cee0b

@adrianbj
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @BernhardBaumrock - I'd love to know more about this tweak because in my experience this is how PW already behaves. Obviously I am missing something though :)
image

@BernhardBaumrock
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't say 100% for sure but I think PW only behaves like this if you only allow one template for a certain parent. Then you can skip one step in the page add process. But there are situations where multiple parents are allowed but not for all roles or not for all parents (when restricted dynamically via hook).

I think in those cases you get a regular page add letting you choose the template (where only one is selectable) and thats not necessary.

Maybe it should better be fixed in the core, but you know how it is. Sometimes these things are not added for years, so I guess I went the quick route for a project and created the tweak...

Please sign in to comment.