From: Dan F. <dfr...@cs...> - 2004-04-12 15:06:47
|
Dan Frankowski wrote: > Reini, > > I added a bit about the initial_content parameter and quoting it with > ~~s. Feel free to take it if you want. Thanks for adding the original > pgsrc. > > Dan > > Date: Mon, 12 Apr 2004 11:26:41 +0100 > Mime-Version: 1.0 (Produced by PhpWiki 1.3.8) > X-Rcs-Id: $Id: CreatePagePlugin,v 1.1 2004/04/11 10:42:03 rurban Exp $ > Content-Type: application/x-phpwiki; > pagename=CreatePagePlugin; > pgsrc_version="2 $Revision: 1.1 $"; > flags=""; > markup=2; > charset=iso-8859-1 > Content-Transfer-Encoding: binary > > > WikiPlugin to easily create new pages, optionally with default > content. Present since release 1.3.8. > > This allows you to create a page geting the new pagename from a > forms-based interface, and optionally with the initial content from some Dangit: "geting" => "getting" > template. > > Put a "<~?plugin-form ~CreatePage ?~>" on any page, browse this page, > enter the name of the page to create, then click the button. > > !! Usage > <verbatim> > <?plugin-form CreatePage ?> > <?plugin-form CreatePage initial_content="The page you just > created is in the ~~[Soda] category." ?> > <?plugin-form CreatePage template=CategoryHomePage ?> > </verbatim> > > !! Plugin Arguments > __s__: | > The pagename, which will passed to the plugin. Default: "" > __initial_content__: | > The new page will be pre-filled with this content. Default: "" > You can give plugin parameters to this argument in ~[]s, and they are > parsed. Currently, there are not many useful plugin parameters (just > ~[pagename]). However, then to refer to another page using []s, you > must quote it with ~~ as shown above. > __template__: | > The new page will be pre-filled with the content of this page. > Default: "" > > !! Known Problems > > None > > !! Plans > > The template might hold some variables, which will be expanded on > creation. > > !! Author > > Dan Frankowski > > !! Examples > > <?plugin-form CreatePage s=MyHomePage ?> > > See also PhpWiki:EasilyCreateNewPages > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk |