Hi,
I am quite new to wiki. I tried to write a dynamic extension of the sidebar, which is context-sensitive, and when the user select an article - it can react and adds some good links to the sidebar.
First I tried to insert a spec tag into the article, like <sidebarExt context="projects"/>. My TAG parser reads the arcticle, returns an empty string, and writes the context into the session array. Then I attached a hook function to the SkinTemplateOutputPageBeforeExec, to read the session and generate the Sidebar links.
First it worked well. But after a few going back and forth, it seemed that the session value does not change. I think it is because the cache of the sidebar and/or the cache of the article.
As far as I know, the sidebar cache can be disabled - the article cache? I don't know.
I think it is not the best way, because the article cache is a good thing, but in this case the article is not read always by the myTag extension function, so it won't change the value. Other words - it wont detect, that a change is needed in the sidebar.
Second thought is to add a new meta tag to the article, but I don't know how to do that.
Anybody has a new idea how to solve this? Either adding a new meta tag, either change my mind, and do it another way?
Thanks in advance...
Zoltan Hernyak