Jump to content


Photo

ListMenu snippet not working properly after upgrade to 0.6.1.4


  • Please log in to reply
2 replies to this topic

#1 skylerb

skylerb

    Etomite Forum Newbie

  • Member
  • 17 posts

Posted 24 December 2007 - 10:55 PM

ListMenu is not working like it did in my previous Etomite installation (0.6 Heliades). I have gone through the source of the ListMenu snippet on each installation (previous installation is on another machine) and compared them line by line to ensure I did not "enhance" the previous verison, and I did not. The two scripts are identical and they they are configured identically. Here is the current "config":

$removeNewLines = false;
$currentAsLink = true;
$levelsDeep = 0;
$directGeneology = true;
$showGlobals = true;
$sortWiz[] = array("menuindex","ASC");

There 3 top level menus, each with a number of submenus and subitems. When I go to the home page, ListMenu correctly renders the 3 top level menus:

- Menu1
- Menu2
- Menu3

So far so good. However, when I click on one of the top level menu items, I am taken to the correct page, but the menu does not change. It looks like the menu above, but I expect to see this:

-Menu1
--menu1_submenu1
--menu1_summenu2
--menu1_submenu3
--menu1_subitem1
-Menu2
-Menu3

If I type the URL of menu1_subitem1 into my browser, I correctly arrive at that page, _and_ the ListMenu is rendered properly (like the one above). But if I browse directly to menu1_submenu1, then I see all second generation links (just like the one above), but the current one is not expanded. The problem seems to be that it is constantly one generation _behind_ where it should be. Has anyone else experienced this? If anyone could help me with this, it would be a real xmas miracle :)

Thanks,

Skyler

#2 skylerb

skylerb

    Etomite Forum Newbie

  • Member
  • 17 posts

Posted 27 December 2007 - 12:07 AM

Some more info on my existing ListMenu problem. When I "Export site to HTML", and browse through the assets/export directory, all of the menus are rendered properly, it just doesn't seem to work within Etomite. I realized I was using an older version of the snippet, and upgraded to one with a date of 2005.08.04 (the one included in the newest version of Etomite), but this did not resolve the issue (it seems the update simply adds some additional display options and doesn't change the underlying logic of the snippet).

So I guess the question now is, why does it work properly for the exported site, but not within Etomite?

This is the last issue I have to fix before I am fully functional again, and I am dying figure it out. Could it be that some other components of Etomite were not updated when I transferred my old database to the new installation. For example, I did not have the newest versions of the snippets, because they are included in the new install/sql/etomite.sql file, and I never used this file (I just transferred the whole database to the new server). Could I be missing some important components?

Thanks for your time,

Skyler

#3 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 27 December 2007 - 01:44 AM

You could either extract the snippet code from the SQL file included with the update or I'm sure someone could provide you with the newest snippet code... I usually have multiple hacked up versions kicking around because I can never seem to leave well enough alone and keep poking and prodding at the snippets that I use on my own sites...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users