aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-01 15:54:10 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-01 15:54:10 -0400
commit18b1c7f01256ec7761263fb699aa51ae9d92bc0b (patch)
tree9e6469c756481006545152a93cffde8eec5b186b /doc
parentaba53047af2cb06436ddac156bc6bb3e016b96b3 (diff)
parent826af4600a4e413ca8ec7b6d56f0a1cdca0ad635 (diff)
downloadikiwiki-18b1c7f01256ec7761263fb699aa51ae9d92bc0b.tar
ikiwiki-18b1c7f01256ec7761263fb699aa51ae9d92bc0b.tar.gz
Merge branch 'tova'
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins/write.mdwn6
-rw-r--r--doc/todo/index.html_allowed.mdwn4
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 4e27d361d..1b78f5900 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -691,6 +691,12 @@ destination file, as registered by `will_render`.
If the third parameter is passed and is true, an absolute url will be
constructed instead of the default relative url.
+#### `newpagefile($$)`
+
+This can be called when creating a new page, to determine what filename
+to save the page to. It's passed a page name, and its type, and returns
+the name of the file to create, relative to the srcdir.
+
#### `targetpage($$)`
Passed a page and an extension, returns the filename that page will be
diff --git a/doc/todo/index.html_allowed.mdwn b/doc/todo/index.html_allowed.mdwn
index 13ed49211..f030f9eea 100644
--- a/doc/todo/index.html_allowed.mdwn
+++ b/doc/todo/index.html_allowed.mdwn
@@ -121,4 +121,6 @@ diff -ru ikiwiki-2.4/IkiWiki.pm ikiwiki/IkiWiki.pm
</pre>
-This just makes it so that all files named foo/index become pages called foo, which is the desired effect. I haven't tested everything so far, so be careful! But you can see it working at http://ikidev.betacantrips.com/one/ again, as before. --Ethan \ No newline at end of file
+This just makes it so that all files named foo/index become pages called foo, which is the desired effect. I haven't tested everything so far, so be careful! But you can see it working at http://ikidev.betacantrips.com/one/ again, as before. --Ethan
+
+[[done]], the indexpages setting enables this.