From: Reini U. <ru...@x-...> - 2008-07-04 10:15:33
|
Marc-Etienne Vargenau schrieb: > Update of /cvsroot/phpwiki/phpwiki/pgsrc > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20430/pgsrc > > Modified Files: > Help%2FIncludePagePlugin > Added Files: > samplepage > Log Message: > Implemented "sections" parameter for IncludePagePlugin I don't like that name samplepage. It's no WikiWord. Cannot we use an existing page with sections to use as sample for IncludePage? > --- NEW FILE: samplepage --- > Date: Wed, 2 Jul 2008 16:17:18 +0200 > Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124) > X-Rcs-Id: $Id: samplepage,v 1.1 2008/07/03 19:22:57 vargenau Exp $ > Content-Type: application/x-phpwiki; > pagename=samplepage; > flags=PAGE_LOCKED; > markup=2; > charset=iso-8859-1 > Content-Transfer-Encoding: binary > > This is a sample page to describe the use of the [IncludePage|Help:IncludePagePlugin] plugin. > > !!! First section > > Text in the first section > > !! A nice subsection > > Text in the nice subsection. > > !! Another subsection > > Text in the other subsection. > > !!! Second section > > Text in the second section > > !! A nice subsection > > Text in the nice subsection of second section. > > !! Another subsection > > Text in the other subsection of second section. > > !! Third subsection > > Text in the third subsection of second section. > > !!! Third section > > Text in the third section. > > Index: Help%2FIncludePagePlugin > =================================================================== > RCS file: /cvsroot/phpwiki/phpwiki/pgsrc/Help%2FIncludePagePlugin,v > retrieving revision 1.7 > retrieving revision 1.8 > diff -u -2 -b -p -d -r1.7 -r1.8 > --- Help%2FIncludePagePlugin 27 Jun 2008 20:03:55 -0000 1.7 > +++ Help%2FIncludePagePlugin 3 Jul 2008 19:22:57 -0000 1.8 > @@ -1,3 +1,3 @@ > -Date: Mon, 26 Jun 2008 14:15:24 +0000 > +Date: Thu, 3 Jul 2008 10:56:37 +0200 > Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124) > X-Rcs-Id: $Id$ > @@ -39,11 +39,50 @@ sectionhead > !!! Examples > > -<?plugin IncludePage page="HomePage" ?> > +!! ~IncludePage page=samplepage > +<?plugin IncludePage page=samplepage ?> > > -<?plugin IncludePage page="Help/WabiSabi" ?> > +!! ~IncludePage page=samplepage lines=6 > +<?plugin IncludePage page=samplepage lines=6 ?> > > -!!! Author > +!! ~IncludePage page=samplepage section="Second section" > +<?plugin IncludePage page=samplepage section="Second section" ?> > > -Joe Edelman > +!! ~IncludePage page=samplepage section="Second section" sectionhead=true > +<?plugin IncludePage page=samplepage section="Second section" sectionhead=true ?> > + > +!! ~IncludePage page=samplepage sections=2 > +<?plugin IncludePage page=samplepage sections=2 ?> > + > +!! ~IncludePage page=samplepage section="Second section" sections=2 > +<?plugin IncludePage page=samplepage section="Second section" sections=2 ?> > + > +!! ~IncludePage page=samplepage quiet=1 > +<?plugin IncludePage page=samplepage quiet=1 ?> > + > +!! ~IncludePage page=samplepage lines=6 quiet=1 > +<?plugin IncludePage page=samplepage lines=6 quiet=1 ?> > + > +!! ~IncludePage page=samplepage section="Second section" quiet=1 > +<?plugin IncludePage page=samplepage section="Second section" quiet=1 ?> > + > +!! ~IncludePage page=samplepage section="Second section" sectionhead=true quiet=1 > +<?plugin IncludePage page=samplepage section="Second section" sectionhead=true quiet=1 ?> > + > +!! ~IncludePage page=samplepage sections=2 quiet=1 > +<?plugin IncludePage page=samplepage sections=2 quiet=1 ?> > + > +!! ~IncludePage page=samplepage section="Second section" sections=2 quiet=1 > +<?plugin IncludePage page=samplepage section="Second section" sections=2 quiet=1 ?> > + > +!!! Known bugs > + > +* ~RedirectTo plugin is not handled correctly. > +* Line and word limit doesn't work if the included page itself includes a plugin. > + > +!!! Authors > + > +* Joe Edelman > +* bug fixes by [Reini Urban|PhpWiki:ReiniUrban] > +* "sections" parameter implemented by Marc-Etienne Vargenau, Alcatel-Lucent > > !!! See Also -- Reini Urban http://phpwiki.org/ http://murbreak.at/ |
From: Marc-Etienne V. <Mar...@al...> - 2008-07-04 12:38:54
|
Reini Urban a écrit : > Marc-Etienne Vargenau schrieb: >> Update of /cvsroot/phpwiki/phpwiki/pgsrc >> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20430/pgsrc >> >> Modified Files: >> Help%2FIncludePagePlugin >> Added Files: >> samplepage >> Log Message: >> Implemented "sections" parameter for IncludePagePlugin > > I don't like that name samplepage. > It's no WikiWord. > Cannot we use an existing page with sections to use as sample for > IncludePage? Hello Reini, I created a new page mostly for testing the interactions when using multiple arguments (both "section" and "sections"). It is easier to use a page that is simple and cannot change unexpectedly. I personaly do not like camel case, I prefer to use brackets. But feel free to rename the page or delete it. It would be nice if you can have a look at my code and test it a bit. Best regards, Marc-Etienne -- ================================================================== ------ | Marc-Etienne Vargenau | / \ | Alcatel-Lucent France, Route de Villejust, 91620 NOZAY, FRANCE | / /|'` \ | +33 (0)1 30 77 28 33, Mar...@al... | | /'| ' | ================================================================== \ |/ / | L'essence des Mathématiques est dans leur liberté. | \ / | Georges Cantor | ------ ================================================================== |
From: Marc-Etienne V. <Mar...@al...> - 2008-07-04 16:00:44
|
Hello, In the preferences, you can ask to be notified of page modifications. The doc says: "Enter pages seperated by space or comma. Wildcards (fileglobbing) allowed." How is this supposed to work for pages: - that contain a comma (not very common), - that contain a space (quite common for us). Would it not be better to enter one page per line? Thank you for your advice. Best regards, Marc-Etienne -- ================================================================== ------ | Marc-Etienne Vargenau | / \ | Alcatel-Lucent France, Route de Villejust, 91620 NOZAY, FRANCE | / /|'` \ | +33 (0)1 30 77 28 33, Mar...@al... | | /'| ' | ================================================================== \ |/ / | L'essence des Mathématiques est dans leur liberté. | \ / | Georges Cantor | ------ ================================================================== |
From: Reini U. <ru...@x-...> - 2008-07-04 16:29:30
|
Marc-Etienne Vargenau schrieb: > In the preferences, you can ask to be notified of page modifications. > > The doc says: > > "Enter pages seperated by space or comma. Wildcards (fileglobbing) allowed." > > How is this supposed to work for pages: > - that contain a comma (not very common), > - that contain a space (quite common for us). > > Would it not be better to enter one page per line? Yes, that would be better. But I wanted to be compatible with the "cmdline", the GET url. Such pagelists on the url are quite common, and it's on the TODO list to escape commas in pagenames for such pagelist arguments. So it would be simplier to do the comma-encoding, apply it to this list and decode it whenever pagelists are accepted. Spaces should already be encoded as %20. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ |