summaryrefslogtreecommitdiff
path: root/doc/forum
diff options
context:
space:
mode:
authorjustint <justint@web>2011-02-23 16:03:31 +0000
committerJoey Hess <joey@kitenet.net>2011-02-23 16:03:31 +0000
commit4cb74e9907ab4595a05272172401a09bb6f4b5fd (patch)
tree28e093cef73ad1f6f0ab31c2f56831a9740bc186 /doc/forum
parent0357bfb2974180935008f1e3165535ad071a0f84 (diff)
Added a comment: IS_ADMIN template wouldn't work
Diffstat (limited to 'doc/forum')
-rw-r--r--doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_3_4cc44e61b9c28a2d524fa874f115041a._comment14
1 files changed, 14 insertions, 0 deletions
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
index 000000000..e152091bc
--- /dev/null
+++ b/doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_3_4cc44e61b9c28a2d524fa874f115041a._comment
@@ -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]]
+
+
+"""]]