From: <jw...@fi...> - 2003-12-17 14:11:30
|
Hello again, Here are the patches for the "copypage" functionnality - The modification in editpage.php catches the copypage argument and = forces this page to be chosen as the basis for edition - The modification in Calendar adds the "copypage" argument to the = plugin. This way, when a user clicks on a date, the "empty" wiki page that is = opened contains the same content as the copypage Page e.g. <?plugin Calendar copypage=3DMyChosenExistingTemplatePage?> I hope the patches have been made at the best places in the phpwiki = code, and that you will be able to tweak them into the project code base. Keep me posted! J=E9r=F4me -----Message d'origine----- De=A0: Reini Urban [mailto:ru...@x-...]=20 Envoy=E9=A0: mercredi 17 d=E9cembre 2003 13:30 =C0=A0: J=E9r=F4me WAGNER Cc=A0: php...@li... Objet=A0: Re: [Phpwiki-talk] copypage functionnality please attach your patch to an email or post it at sf.net. we will review it and add it to the current CVS. very good idea indeed! J=E9r=F4me WAGNER schrieb: > I added a small patch to the sources in order to have a "copypage" > functionality : >=20 > When doing an action=3DEdit©page=3DMyPage, >=20 > The resulting textarea is prefilled with the content of MyPage >=20 > This allows, via a patched Calendar plugin for example, to have a = single > prefilled template every time you want to add an entry in the = calendar. >=20 > I'd like to know if there already is such a functionality in the wiki, = if it > interests anyone, and how we could to do add such a thing in the code base. --=20 Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |