You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because $site actually represents the content root, and so page traversal is allowed even if the page parent is a Site object. If you call $page->parent()->path() you have the expected result.
Maybe the naming could be reviewed in Formwork 2.0, splitting Site from pages logic for good and also the content folder should be renamed to "pages".
I'm not afraid of breaking changes, as Formwork 1.0 is almost entirely rewritten.
Activity
giuscris commentedon Jun 3, 2024
This is because
$siteactually represents the content root, and so page traversal is allowed even if the page parent is aSiteobject. If you call$page->parent()->path()you have the expected result.Maybe the naming could be reviewed in Formwork 2.0, splitting Site from pages logic for good and also the content folder should be renamed to "pages".
I'm not afraid of breaking changes, as Formwork 1.0 is almost entirely rewritten.