We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page-1 -> listed
page-1 -> draft
Using $site->findPageOrDraft("page-1/page-2/page-3")
$site->findPageOrDraft("page-1/page-2/page-3")
Expected behavior I expect the method to recursively find draft pages as well.
Kirby Version 4.1.2
The text was updated successfully, but these errors were encountered:
add helper method for findPageOrDraft, bypasses getkirby/kirby#6339
fa23801
Signed-off-by: Tobias Möritz <tobias@moeritz.io>
Include drafts in finding pages key recursively
94ea2a4
Fixes #6339
distantnative
Successfully merging a pull request may close this issue.
Description
page-1 -> listed
-> will fail
page-1 -> draft
-> will work
page-1 -> listed
-> will fail
Using
$site->findPageOrDraft("page-1/page-2/page-3")
Expected behavior
I expect the method to recursively find draft pages as well.
Your setup
Kirby Version 4.1.2
The text was updated successfully, but these errors were encountered: