From: Reini U. <ru...@x-...> - 2004-06-09 21:42:20
|
Dmitry M. schrieb: > On Wed, Jun 09, 2004 at 04:03:32PM -0500, Dan Frankowski wrote: > >>No suggestions, other than to change the plug-in interface (add a >>method, say), and put a hook in editpage.php. I can't check in code in >>Phpwiki, tho, so you shouldn't necessarily take my word on it. > > > Hmm, perhaps that is what I will do. I have no idea how this is usually > implemented. Any examples of good implementations? I will have to think > about this. > > >>Out of curiosity, what are you trying to do? I've thought about putting >>hooks there for structured data (essentially, the ability to edit and >>retrieve versioned fields associated with a page, like "author" of a >>book page and so on). >> >>Dan > > > I'm trying to see if a external "category" association will be useful at > all. Basically every wiki page can belong any number of "categories". > For instance, DmitrysResume could belong to {Documents, Dmitry}. > DmitrysBlog could belong to {Blogs, Dmitry} and DmitrysPictures could belong > to {Pictures, Dmitry}. Then I'd be able to click on "Dmitry" and > retrieve all the logically related pages. So instead of a tree > structure (like a filesystem), I end up with a flat list that's very > quick to traverse. I believe this a variation on a concept called "faceted categories". > > What I have now is a plugin that allows the traversal of that list. The > category addition/modification is implemented as a textbox on the edit > screen (which is another problem). So, to append categories, I"ve simply added a couple of > lines to the editpage.php. Clearly it can work this way, but it doesn't > seem wise to hack code to enable some specific plugin functionality.. If > this is to work only main wiki functionality has to be in /lib/ and the > rest should be implemented as plugins.. If you can persuade some developer to put it into core it will be in lib/ :) I have such a editpage toolbar feature in the works where you can press a button, which opens a window with a pulldown of all: * plugins * categories * all pagenames You select one and this is inserted verbatim into the textarea. This way you can easily associate categories, insert links to other pages and insert plugins. The problem is that I ran against yet unknown problems with MacIE, where most of the editpage toolbar features don't work. I only knew that the display property is missing on MacIE, so CreateToc and AddComment with js_hide will not work. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |