logo       

RE : copypage functionnality: msg#00079

web.wiki.phpwiki.talk

Subject: RE : copypage functionnality

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=MyChosenExistingTemplatePage?>

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érôme

-----Message d'origine-----
De : Reini Urban [mailto:rurban@xxxxxxxx]
Envoyé : mercredi 17 décembre 2003 13:30
À : Jérôme WAGNER
Cc : phpwiki-talk@xxxxxxxxxxxxxxxxxxxxx
Objet : 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érôme WAGNER schrieb:
> I added a small patch to the sources in order to have a "copypage"
> functionality :
>
> When doing an action=Edit&copypage=MyPage,
>
> The resulting textarea is prefilled with the content of MyPage
>
> 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.
>
> 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.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

Attachment: lib_editpage.php.diff
Description: Binary data

Attachment: lib_plugin_Calendar.php.diff
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise