From: Reini U. <ru...@x-...> - 2005-01-10 13:03:36
|
Han Xu schrieb: > I am a newbie. I wanted to use PhpWiki to co-author a website with > friends. The main change I wanted to is to customize the layout of > page editing . I.e. > > 1) The editpage should not only have a big "textarea'", but include a > easy-to-fill form consisting of multiple pre-defined entries. > > 2) One of the entry in the form would be a image file name. i.e. User > should be able to import a image file and put it on the page. > > First I tried on Phpwiki v1.2.4. I changed the "textarea" into a form > by modifying templates/editpage.html. But i don't how to enable image > file uploading. > > Then I tried on Phpwiki v1.3.10, it is SO different with v1.2.4 > that I cannot easily implement a form in editpage. So, my questions > are: > > 1) What is the best (easiest) way to implement a pre-defined form in > editpage to replace the "edit_textarea". in v.1.3.10 ? Do you want to add entries to the edit_textarea, or replace it? Aynway, you have to fix themes/<yourtheme>/templates/editpage.tmpl (which is easy), and fix lib/editpage.php. editpage in current CVS: edit getFormElements() to add your forms and _restoreState() to read your form values and concat it to ->_content. > 2) How can I enable image file uploading in v1.2.4 ? That's quite a lot of work. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |