Loading...
 
Architecture / Installation

Architecture / Installation


Dynamic menu / toc created through wiki structures?

posts: 4 Australia

Hi Folks,

i am new to tikiwiki and i'm really struggling to make the structures to create a dynamically generated menu / TOC structure.

What i am trying to do is create a menu on the left like you guys have here (points to the left) where it shows home / search / stats / etc.

But i'd like it to be created my menu based on the wiki 'structures' i've created with dynamic links, so when i click on installation, it takes me to the top level installation wiki.

I've tried to follow the documentation (and the videos), but i am pretty confused. I've sort of gotten there:
http://wiki.doxbox.ca/tiki-index.php

But i'm not exactly sure what i've set to get it to work. I've got a module where the structure variable is set to "documentation" and module "name" is set as "menu", but i cant see anywhere else or how its mapped to the wiki structure i've created?

secondly, i dont know how to make those menu items (i.e. installation) link back to the wiki page called "installation".

Could someone explain it to me? sorry for the newbie question :-(

posts: 3665 United States

I'll try to help....

First, what Tiki version are you using?

It looks like you have 2 separate structures... (Installation and Configuration — but I don't see a structure named "Documentation").

You say you've assigned structure=Documentation in the Menu module, but if you don't actually have a structure named Documentation it won't work.

Can you confirm that you do, in fact, have a structure named Documentation? See the docs or my primer for details.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.

posts: 4 Australia

Hi Rick! thanks for the reply. The docs don't cover what i was trying to do, hence the post :-( I also checked your tiki for smarties too!!

What i cant work out is how to get the root of my pages (or maybe i need to create a root structure?)

Here is how i want my menu module to look:
Installation (wiki page + structure)
--> windows
--> linux

Configuration (wiki page + structure)
--> apache (wiki page)
--> DB (wiki page)
--> Php (wiki page)

If i set menu module to either of those structures, they don't "walk" down the tree.

I guess i'm looking for a collapsable / walkable tree, like you get with , but in a menu module.

thanks!

Nathan

posts: 3665 United States

I'm not 100% sure what your issue is... I made a quick mock-up menu on the Tiki demo site:

http://demo.tiki.org/11x/tiki-index.php?page=Documentation

The Documentation menu in the right column is auto-generated. It uses the Tiki Menu module and a single wiki structure (named: Documentation)

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.

posts: 4 Australia

hi Rich,

i did manage to get my first level working, like i expected.

If you take a look here:
http://wiki.doxbox.ca/

You can see i have a structure called "DoxBox Wiki" and its working fine.

i've now re-read the docs, and understand the terms a bit better now, thanks again for your patience Rich :c)

Last question, i promise.

If would like to create a second structure called "installation" that has two wiki items mysql and oracle, can i have that as an expandable menu / item against the installation entry?

When i try to create the second structure, i get an error saying that the "installation" page exists (which is true).

Should i just delete the installation wiki and then try to create the structure?

Will this get me the expandable / popout menu for installation?

Like the out of the box administrator menu, where the "wiki" item "pop's out" to home / changes/ pages and "admin" menu pops out to action home / action log / categories / etc

so i want my second structure "installation" to pop out against the installation item with mysql / oracle.

make sense?

thanks!!

posts: 3665 United States
nathank wrote:

If would like to create a second structure called "installation" that has two wiki items mysql and oracle, can i have that as an expandable menu / item against the installation entry?

When i try to create the second structure, i get an error saying that the "installation" page exists (which is true).

Tiki will create a wiki page for the root of the structure. Therefore, each structure and wiki page must be unique. You cannot have both a wiki page and a structure named Installation.

However... if you use a wiki page alias, you can have two differently named pages that appear to have the same name. Basically, rename the existing Installation wiki page to something else (such as Installation Page, then use the alias to have its display name remain as simply Installation. You might find my primer useful.

nathank wrote:

Will this get me the expandable / popout menu for installation?

Like the out of the box administrator menu, where the "wiki" item "pop's out" to home / changes/ pages and "admin" menu pops out to action home / action log / categories / etc

so i want my second structure "installation" to pop out against the installation item with mysql / oracle.


I don't think you can combine two structures into a single menu, if you want the second structure to be a child of an existing page.

Instead, I suggest that you create a single structure. Then, by using the Menu plugin, you can easily achieve the fly-out CSS menus.

If you're still having problems, you can contact me, directly and I'll try to help.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.

posts: 4 Australia

works perfectly! :-)

The one bit i missed was to add child pages from the top of the structure.

When you add the child pages in the structure, you get the CSS pop-outs.