incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Paige" <bobpa...@gmail.com>
Subject Re: create a new page from a template?
Date Wed, 09 Jul 2008 11:41:34 GMT
Murray,

I'm looking at your site, but I'm not finding the sources :)

Can you give me a pointer?

-- 
Bobman

On Tue, Jul 8, 2008 at 8:38 PM, Murray Altheim <murray07@altheim.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message