Thanks for the pointer; I will look at that. As far as security, I can imagine someone might try to view a page they otherwise don't have access to by creating a 'clone' of it (as Dirk suggests; I like that terminology, BTW). But isn't it possible to check the permissions for the original page within the plugin? I think I've seen that in the code I've been looking at so far.
-- Bobman On Tue, Jul 8, 2008 at 8:38 PM, Murray Altheim <[EMAIL PROTECTED]> wrote: > Bob Paige wrote: > >> Jann, >> >> Is there some way to create a new page from a template? I've discovered >> how >> to set a small amount of text in the new page by appending it to the URL, >> but a more versatile approach would be great. >> >> I'm thinking something like >> >> http://localhost:8080/trivinwiki/Edit.jsp?page=MyNewPage&template=NameOfTemplatePage >> >> Could page filters do the trick? Are page filters called before the editor >> is displayed for new pages? Then I could look for some parameter on the >> URL >> to determine which page I should return as the template. >> >> I tried stepping through the debugger and it doesn't look like filters can >> be used in this way, but I thought I'd ask. >> > > Bob, > > Check out the NewPageHandler, part of the FormPlugin: > > http://www.altheim.com/ceryle/wiki/Wiki.jsp?page=FormPlugin > > javadoc: > > > http://www.altheim.com/ceryle/api/org/ceryle/wiki/handler/NewPageHandler.html > > Even if you don't use the form you can likely use the handler (it is > itself a WikiPlugin). > > I think you've already mentioned this, but permitting users to > programmatically create pages could be a security nightmare. > > Murray > > ........................................................................... > Murray Altheim <murray07 at altheim.com> === = > = > http://www.altheim.com/murray/ = = > === > SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = = > > Boundless wind and moon - the eye within eyes, > Inexhaustible heaven and earth - the light beyond light, > The willow dark, the flower bright - ten thousand houses, > Knock at any door - there's one who will respond. > -- The Blue Cliff Record >
