]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_3_4cc44e61b9c28a2d524fa874f115041a._comment
Added a comment
[ikiwiki.git] / doc / forum / TMPL__95__VAR_IS__95__ADMIN / comment_3_4cc44e61b9c28a2d524fa874f115041a._comment
1 [[!comment format=mdwn
2  username="justint"
3  ip="24.182.207.250"
4  subject="IS_ADMIN template wouldn't work"
5  date="2011-02-23T16:03:31Z"
6  content="""
7 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). 
8
9 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. 
10
11 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]]
12
13
14 """]]