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
We'd welcome decoupling from Page in this module if you'd like to submit a pull request, but I'm going to close for now. Thanks for raising the issue though =)
For reference here @torleif the work here is mostly done (abstracting this module from Page) - in order to circumvent your problem for now I see two solutions:
class_alias your namespaced Page class. Similar to how SS3 does for Object to be PHP 7.2 compatible
Make a PR to exit early if (!class_exists('Page'))
You can create a custom userform class simply by applying the traist, as is what happens with the problematic class in discussion:
If you have your page class name spaced, the userforms module won't be able to pick up on it and will return an error.
it probably should rely on SiteTree, or use some extension magic to allow the user to specify the page type using a yml file.
The text was updated successfully, but these errors were encountered: