From: Reini U. <ru...@x-...> - 2004-03-17 10:05:36
|
Dan, I'd love to add your RateThisPage feature to PhpWiki. Did you see my latest WikiPoll? The CategoryPage plugin idea is also cool, but I would like to change it a bit. I see your point with the dynamically created initial_content, but then I would like to suggest to use variables in the user-editable TemplatePage content which get's translated per Category. Something wikipedia is also struggling with. Dan F schrieb: > As background to this discussion, I attach my current version of my > CategoryPage.php plugin, and the categorypage.tmpl it uses. The idea is > to be able to drop <?CategoryPage ?> on any page you wish to represent a > category in order to replicate boilerplate text that describes how it > works for a newbie. > > All of this would probably be unnecessary for people who know a lot > about how Phpwiki works (specifically: searching, creating pages, and > backlinks), but I am specifically trying to design our site for casual > users who don't care about wikis. I plan to try to attract many of them > (potentially hundreds or thousands) to rate restaurants, research > papers, movies, etc. >> Thanks for your response! I assume you meant to add your suggested >> code into the CreatePage plug-in, then add the template itself as a >> Wiki page. I like the fact that yours is not restricted by GET length, >> and that it is editable by end-users. I also agree that introducing >> quoting into expandArgs() is a bold move that one would like to avoid >> if possible. >> >> The potential issue for me is that the template itself might have to >> be programmatically generated. Thus, I don't want "[Restaurant]" in >> general, but, "[" . "[pagename]" . "]", so that I can drop a simple >> statement (currently a CategoryPage plugin) that has a "CreatePage" >> button on "[Restaurant]" that refers back to [Restaurant] and drop >> that same CategoryPage plugin without mods onto "[ResearchPaper]" and >> its "CreatePage" button refers back to "[ResearchPaper]". I am not >> describing it very well in English. For an example, please see: >> >> http://dickens.cs.umn.edu/dfrankow/wikilens/index.php/Restaurant >> http://dickens.cs.umn.edu/dfrankow/wikilens/index.php/ResearchPaper >> http://dickens.cs.umn.edu/dfrankow/wikilens/ >> >> I will work with your suggestion and see how it goes. I'd much prefer >> to have something you guys are willing to accept as a mod. > This page represents the category. > All pages that are in the category refer to this page. > > "BackLinks", 'exclude' => "$EXCLUDE"), _("Show all pages in the > $SINGULAR category")); ?> > > To put a page into the category > > 1. Search to see if it already exists. We don't want lots of > duplicate pages. You can use this FuzzyPages search: > > 2. If it does not exist, create the page and save it. You can use > this CreatePage button, or see for more ways to navigate or create > pages. _printPlugin("<" . "?plugin-form CreatePage > initial_content=" . $initial_content . " ?" . ">"); ?> > > 3. Whether you just created it or it already exists, to ensure that > the *"Show all pages in the category"* button shows your page, be > sure to refer to this page by putting *[]* in your page text > somewhere (including the brackets to be safe). -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |