From: Geoffrey T. D. <da...@us...> - 2002-02-07 21:17:30
|
Update of /cvsroot/phpwiki/phpwiki/pgsrc In directory usw-pr-cvs1:/tmp/cvs-serv16514/pgsrc Modified Files: MagicPhpWikiURLs PhpWikiAdministration Log Message: Eliminate MagicPhpWikiURL forms in favor of new WikiForm plugin. The problem with the MagicPhpWikiURL forms, is that <form>s are not inline (HTML) markup, while MagicPhpWikiURLs look like links, which are inline markup. The mixing of the two makes for very messy hackage in the text transformation engines. (The only place the magic forms were still used in for the file load/upload and file dump administrative functions. The WikiForm plugin now produces those forms.) Index: MagicPhpWikiURLs =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/pgsrc/MagicPhpWikiURLs,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -I^#: -d -r1.9 -r1.10 --- MagicPhpWikiURLs 27 Jan 2002 22:52:21 -0000 1.9 +++ MagicPhpWikiURLs 7 Feb 2002 21:17:26 -0000 1.10 @@ -63,30 +63,8 @@ !! Writing Magic Forms in Wiki Pages -''__Note__: Magic forms are on their way out, I think. They are being superceded by <''''?plugin-form>s.'' - -If one of the ''query-args'' has a value like - ''arg''__=__''opt-width''__(__''opt-dflt-val''__)__ -the link will be rendered as a form, rather than as an anchor. - -''Opt-width'', if given specifies the size of the input area, while -''opt-dflt-val'' specifies the default value for the input. -If ''text'' is given in the link, then a submit-button with that -label will be included in the form, otherwise the submit button -will be omitted. - -Examples: - - [[ Full Search | phpwiki:FullTextSearch?s=() ] -gives -[ Full Search | phpwiki:FullTextSearch?s=() ] - -While - [[ phpwiki:TitleSearch?s=12() ] -yields -[ phpwiki:TitleSearch?s=12() ] - -Other examples: -[ Browse Page | phpwiki:?action=browse&pagename=() ] +Magic forms are no longer supported. They have been superceded +by <''''?plugin-form?>s (for text searches) and by the WikiFormPlugin +(for files uploads, etc.) ---- PhpWikiDocumentation Index: PhpWikiAdministration =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/pgsrc/PhpWikiAdministration,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -I^#: -d -r1.14 -r1.15 --- PhpWikiAdministration 27 Jan 2002 22:52:21 -0000 1.14 +++ PhpWikiAdministration 7 Feb 2002 21:17:26 -0000 1.15 @@ -10,15 +10,6 @@ __Note__: Most of the actions on this page require administrative privileges. They won't work unless you have set an admin username and password in the PhpWiki config file. ------------ -! Log In - -__[Log In | phpwiki:?action=login]__ - -This allows you to login. -While you are logged in you will be able to ''lock'', ''unlock'' and ''delete'' pages. -You will also be able to edit ''locked'' pages. - ---------- !! Cleanup A Wiki SandBox is very easy to clean. Here you can restore it to pristine condition by loading the default from pgsrc: @@ -46,7 +37,7 @@ Here you can dump pages of your Wiki into a directory of your choice. -[ Dump Pages | phpwiki:?action=dumpserial&directory=(/tmp/wikidump) ] +<?plugin WikiForm action=dumpserial?> The most recent version of each page will written out to the directory, one page per file. @@ -66,7 +57,7 @@ Here you can upload ZIP archives, or individual files from your (client) machine. -[ Upload | phpwiki:?action=upload&file=50()upload ] +<?plugin WikiForm action=upload?> ! Load File @@ -74,14 +65,13 @@ The file or directory must be local to the http server. You can also use this form to load from an http: or ftp: URL. -[ Load | phpwiki:?action=loadfile&source=50(/tmp/wikidump) ] +<?plugin WikiForm action=loadfile?> ----------- !! Format of the files -Currently the pages are stored, one per -file, as MIME ([ RFC2045 | http://www.faqs.org/rfcs/rfc2045.html ]) e-mail -([ RFC822 | http://www.faqs.org/rfcs/rfc822.html ]) messages. +Currently the pages are stored, one per file, as MIME (RFC:2045) +e-mail (RFC:822) messages. The content-type ''application/x-phpwiki'' is used, and page meta-data is encoded in the content-type parameters. (If the file contains several versions of a page, it will have |