]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Added a comment: IS_ADMIN template wouldn't work
authorjustint <justint@web>
Wed, 23 Feb 2011 16:03:31 +0000 (16:03 +0000)
committerJoey Hess <joey@kitenet.net>
Wed, 23 Feb 2011 16:03:31 +0000 (16:03 +0000)
doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_3_4cc44e61b9c28a2d524fa874f115041a._comment [new file with mode: 0644]

diff --git a/doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_3_4cc44e61b9c28a2d524fa874f115041a._comment b/doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_3_4cc44e61b9c28a2d524fa874f115041a._comment
new file mode 100644 (file)
index 0000000..e152091
--- /dev/null
@@ -0,0 +1,14 @@
+[[!comment format=mdwn
+ username="justint"
+ ip="24.182.207.250"
+ subject="IS_ADMIN template wouldn't work"
+ date="2011-02-23T16:03:31Z"
+ content="""
+Ok, I think I get it. The template is used when IkiWiki is compiling the static pages, then users access the static pages. So at the time the templates are compiled there isn't a concept of who is accessing the page or what their session may be like (be it admin or anon or whatever). 
+
+Is there a simple way to serve a different static page based on session information? Off the top of my head I would say no but I thought I would ask. I suppose I could try to compile two static sites, one for me and one for the world. That would solve my IS_ADMIN problem, but I don't think its a solution for similar types of things. 
+
+I like ikiwiki for what it is, I get the feeling I may be asking it to do something it wasn't meant to do. If so I'd appreciate it if someone told me to stop trying. [[users/justint]]
+
+
+"""]]