Wednesday, October 27, 2010 Darn It Innovating Again by Dave Täht

Darn it, I'm innovating again.

I want the navigation in the blog and wiki to be special, yet still readable and usable for those with cookies turned off. I remain on a quest for vertical space.

This is a case for javascript. I hope.

With the proper cookie, show:

login or logout

if logged in, and an admin user, show "edit" on every page

if logged in, and not an admin user show "edit" on appropriate pages

help

comment - on the individual blog pages (maybe)

RecentChanges

Preferences

  • Without javascript show all these next to each other, like this:

Login Logout Help Edit RecentChanges Blog Wiki Archives Tags

  • With Javascript show the appropriate login/logout and the rest in a drop down menu

So I get three cookies from ikiwiki:

ikiwiki_session_Nex6

openid_provider

pandab.org ??

Now what? I am going to defer hacking on this for another day, but getting cookies is solved. Manipulating css is solvable - setting the display: none for sections that I don't want to display is straightforward. I'd have to modify ikiwiki.cgi to generate a cookie that makes sense for general page permissions (and enforce better security on the backend), maybe a regexp of some kind that looks similar to how ikiwiki actually does things internally...

And I want the nav stuff to be deferred until late in the page.

This works for stuff that has a unique id. Class based manipulation is MUCH harder.

(this is also a test to see if I can use wiki markup in a comment)

Comment by d Wednesday, October 27, 2010