Loading...
 
Skip to main content

Features / Usability


Baffled by Menus

posts: 101
Hi folks - I've been trying to create a menu, but I'm unable to place anything inside of sections. Every menu item I create appears at the "root" level of the menu. The Tiki docs didn't seem too enlightening on how to do this, and just by looking at the Main Application Menu configuration, I have not been able to make any headway. Can someone please tell me how I can embed sections & options inside other sections??!
posts: 4668 Japan

Does your menu configuration look something like this?

ID position name url type sections permissions group
171 10 Home Page tiki-index.php section level 0
172 15 Last changes tiki-lastchanges.php option feature_lastChanges tiki_p_view
173 20 List pages tiki-listpages.php option feature_listPages tiki_p_view
174 50 Articles tiki-view_articles.php section level 0 feature_articles tiki_p_read_article
175 60 Main Blog tiki-view_blog.php?blogId=1 section level 0
176 70 Features # section level 0
177 80 List galleries tiki-galleries.php section level 1 feature_galleries tiki_p_view_image_gallery
178 90 Forums tiki-forums.php section level 2 feature_forums tiki_p_forum_read
179 100 File galleries tiki-file_galleries.php sorted section level 0 feature_file_galleries tiki_p_view_file_gallery


This is a pasted-in example of a 1.9.7 menu options configuration (done for testing, the link choices don't really make much sense). In recent Tiki versions, section levels have been added in order to have multilevel menus (children of children, or options under options). Previously, there were just sections, options, sorted sections, and separators.

If you configure a menu something like this, do you still not get levels? Is this for a normal Tiki menu (not PHP Layers)?

-- Gary


posts: 101
Weird. When I go to add a menu item, the only selections for type that I have available are sections, options, sorted sections, and separators... but I'm using Tiki 1.9.7. Any ideas as to why this would be???
posts: 4668 Japan

The Tiki 1.9.7 templates/tiki-admin_menu_options.tpl file has code to select sorted section, option, submenu1, submenu2, and separator (starting at line 32). Try checking if your file has these lines.

-- Gary


posts: 101
Double weird! I searched the file for "submenu" and found no instances of it!! What now? I mean... I'd really like the feature, so what can I to get it?
posts: 4668 Japan

> Double weird! I searched the file for "submenu" and found no instances of it!! What now? I mean... I'd really like the feature, so what can I to get it?

You could get a fresh 1.9.7 package (if you don't have a local copy) and upload the template file.

-- Gary


posts: 101
Ok, now we're in really weird territory. I just downloaded a *fresh* copy of Tiki 1.9.7 Sirius from SourceForge, and found that the "templates/tiki-admin_menu_options.tpl" file does not have the "submenu1", "submenu2", etc. code that you mentioned!!! The file is identical to the one I'm using! What gives?


posts: 101

Well the file you attached is definitely the newer version, and it made some improvement. However, when I include a SubMenu now, Tiki gives me the following error message:

Notice: Undefined index: p in E:\websites\ethruj\intranet\public\tools\wiki\lib\menubuilder\menulib.php on line 130

I haven't looked at the file yet though. I'm going to see if I can sort out why my last download of 1.9.7 seemed stale...


posts: 101

The exact URL I'm using is http://downloads.sourceforge.net/tikiwiki/tikiwiki-1.9.7.zip?modtime=1164478498&big_mirror=1. When I download Tiki from there, I get the old file, not the new one you posted. This is even after I clear my local DNS or do the download on a separate computer, at a different site, over a completely different ISP! According to the DOS Command Prompt, the size of the Tiki 1.9.7 ZIP file is 10,070,092 bytes.

I have no idea what the deal is here, but is there an alternate official download site I could use? This could be a major problem for the Tiki community if the mirror is out of date or something!

😕

posts: 4668 Japan

I'm afraid I caused the problem here. Looking again at my 1.9.7 files, they're the same as yours. Somehow I got 1.9.8 CVS files mixed up with them, and so I thought the template file with the extra menu levels was in 1.9.7, but after checking the zip file from the main download server, the one from the mirror you used, and a 1.9.7tar.bz2 version, I see there is no difference in the files. Somehow I got the files mixed up on my own computer and assumed the new menu levels were in 1.9.7,

Sorry for adding to the confusion. 😡

If you want the extra menu levels, you should get a snapshot of the 1.9.8 CVS version (available at http://de.tikiwiki.org — in the box at the upper left of the page). This version will be out pretty soon, though, and available at all the Sourceforge mirrors.

-- Gary

posts: 101

Hi again Gary,

I'm finally getting a chance to re-visit this issue and checked out the 1.9.8 CVS version you mentioned (http://de.tikiwiki.org), but I have a few questions:

  1. Does the site have a setting for english?
  2. If I install 1.9.8 CVS, will the language switch to non-english??
  3. Should I install the entire package to obtain the multi-level menu functionality, or is there a subset of files I should upload?
  4. Should I backup (using the Admin feature in our current Tiki installation) before I upgrade? I guess I don't really need to ask, BUT...
  5. I didn't actually see a link to download v1.9.8. Where can I find it?


-Corb