Conditional menus? Module syntax info?
Hello to everybody,
I'm a new user of TikiWiki, and first let me tell you that I'm very much impressed by the robustness and quality of the job you (the authors) have been doing. I'm finishing my first Tiki site, and, after I climbed the learning curve middle bump, I've been enjoying it thoroghly. Thanks and keep up the good work.
Now, I have a question: sorry if it's a FAQ, I've looked through the FAQ section first and I _think_ it's not answered anywhere. Anyway, I need to create a kind of a _conditional_ menu. That is, I've created a custom module. I created a custom menu. I embedded the menu in the module using {menu id=x}. But the problem is, the Wiki section of my site is a specific purpose area and it should use its own menu - I'd like to use {menu id=x} for the whole site, but for the Wiki I would need {menu id=y}. Is there a way to use something along the lines of
{if this_is_wiki}
{menu id=y}
{else} /* we are somewhere outside the wiki */
{menu id=x}
{/if}
in the custom module? Also, where can I find information about what exactly I can embed in a custom module? I know from a FAQ I can use raw php in the module, but then I'd need some API info. Could anyone direct me to a document, or do I figure it out form myself from the source? ;)
Thanks,
--
Grzegorz Staniak, gstaniak at wp.pl