]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/plugins/write.mdwn
web commit by tschwinge: --usedirs is used by default.
[git.ikiwiki.info.git] / doc / plugins / write.mdwn
index a122845af470fa4f40c46b5ad8caf93900590ebd..416f1b86e63cd8d68ddb0fa9eb34f5de9f5cf6d6 100644 (file)
@@ -208,6 +208,15 @@ object's "name" parameter to the authenticated user's name. Note that
 if the name is set to the name of a user who is not registered,
 a basic registration of the user will be automatically performed.
 
+### sessioncgi
+
+       hook(type => "sessioncgi", id => "foo", call => \&sessioncgi);
+
+Unlike the cgi hook, which is run as soon as possible, the sessioncgi hook
+is only run once a session object is available. It is passed both a CGI
+object and a session object. To check if the user is in fact signed in, you
+can check if the session object has a "name" parameter set.
+
 ### canedit
 
        hook(type => "canedit", id => "foo", call => \&pagelocked);
@@ -372,6 +381,7 @@ control some options. These are:
 * forcesubpage  - set to force a link to a subpage
 * linktext - set to force the link text to something
 * anchor - set to make the link include an anchor
+* rel - set to add a rel attribute to the link.
 
 #### `readfile($;$)`