]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/todo/adding_new_pages_by_using_the_web_interface.mdwn
inline: Fix handling of rootpage that doesn't exist.
[git.ikiwiki.info.git] / doc / todo / adding_new_pages_by_using_the_web_interface.mdwn
index e24ab123205b968b8fe7b17c05ef333c057591fd..57ee99eb05238eeba230027824cea9fa0783f1c9 100644 (file)
@@ -20,6 +20,17 @@ included there. Won't work for subpages though, unless the directive were
 added to the parent page. However, unconnected subpages are surely an even
 rarer thing to want than unconnected top level pages. --[[Joey]]
 
+> Here is a simple plugin that does that. Perhaps options could be added to
+> it, but I couldn't really think of any.
+> <http://jameswestby.net/scratch/create.diff>
+> -- JamesWestby
+
+> For what it's worth, the following works:  
+> `\[[!inline pages=!* rss=no atom=no postform=yes postformtext="Add a new page titled:"]]`  
+> Add `rootpage=/` if you do this in `index.mdwn` to avoid creating subpages.
+> --[[JeremieKoenig]]
+
+
 Maybe a very simple PHP frontend for serving the
 statically generated pages, that would display a page editing form or
 something like that for non-existent pages, wouldn't be too bad a thing