Module actually breaks in some template delegation scenarios (the content of the PageTable page gets displayed on the frontend instead of showing the admin edit page!), though it may only be me affected at present.
These changes fetch the template as a separate template object and parse in the data, then render the parsed template so ProcessWire doesn't accidentally render the wrong page.
Not sure if it was affecting other people, but it should work in all obscure template delegation cases anyway and doesn't seem to have any downsides that I can see.
Passed $p to the template too as well as the options array so will be backwards compatible with your current instructions.
Module actually breaks in some template delegation scenarios (the content of the PageTable page gets displayed on the frontend instead of showing the admin edit page!), though it may only be me affected at present.
These changes fetch the template as a separate template object and parse in the data, then render the parsed template so ProcessWire doesn't accidentally render the wrong page.
Not sure if it was affecting other people, but it should work in all obscure template delegation cases anyway and doesn't seem to have any downsides that I can see.
Passed $p to the template too as well as the options array so will be backwards compatible with your current instructions.