Inheriteing a zen page from another custom zen page -- best practices
Has anyone encountered or done this: inherit a zen page from another custom zen page?
e.g. EditPage extends
///base code, some abstract methods
UserEditPage extends EditPage
//user edit code
Property id As %String [ZENURL = "ID];
I'd like to take advantage of the inheritance and put all the common methods in the parent page EditPage, but there's no %OnNew concept for the zen page, so I can't set properties for each child page when first creating it.
Perhaps %OnBeforeCreatePage? %OnAfterCreatePage? I don't see any examples of extending a custom page in the SAMPLES namespace.
What are the best practices for inheriting a page