medienbaecker / kirby-modules

Plugin for modular Kirby websites
MIT License
73 stars 7 forks source link

Properly fetch the parent page of the module #37

Closed VinzDF89 closed 1 year ago

VinzDF89 commented 1 year ago

This is a possible solution in order to get the right parent page when working in the PHP file of the module. Without these changes, the "$page" object points to its "technical" parent, which is the "ModulesPage" element. With these changes, the "$page" object points to its expected parent, which is the page that has the modules' section implemented.

height[bot] commented 1 year ago

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.