Short description Similiar to the @ME extension of NewPage which does create on the users Homepage a new page this feature request is to create a page below the page where it is called from.

This could then easily used to create comment or discussion pages below a main page

   1 # HG changeset patch
   2 # User ReimarBauer <R.Bauer@fz-juelich.de>
   3 # Node ID ee9495472b6eb1c9f9e4c65df1834f323beb98eb
   4 # Parent  107ca03adb3cb596454dc8e44fdd996d94b26b30
   5 added @SELF to NewPage to autocreate subpages of page where it is called from
   6 
   7 diff -r 107ca03adb3c -r ee9495472b6e MoinMoin/macro/NewPage.py
   8 --- a/MoinMoin/macro/NewPage.py	Wed Aug 23 22:35:01 2006 +0200
   9 +++ b/MoinMoin/macro/NewPage.py	Wed Aug 23 23:19:21 2006 +0200
  10 @@ -78,6 +78,8 @@ class NewPage:
  11  
  12          if parent == '@ME' and self.request.user.valid:
  13              parent = self.request.user.name
  14 +        if parent == '@SELF':
  15 +            parent = f.page.page_name
  16  
  17          requires_input = '%s' in nametemplate
  18  

NewPage_patch.txt

called: [[NewPage(template,Discussion,@SELF,Discussion)]]


How could this be localized (e.g. discussion in English, Diskussion in German, and so on), and integrated somewhere in the GUI (e.g. "more actions" menu)? -- MartinBayer 2006-08-24 15:03:25


Related Issue: FeatureRequests/DiscussionAndOrCommentPages


CategoryFeatureImplemented in 1.6-dev still no backport to 1.5

MoinMoin: FeatureRequests/NewPageCreatesSubpageOnSelf (last edited 2007-10-29 19:08:51 by localhost)