vertical menu issues


Author Message
phil

Posted: 8/14/2010
Quote message 


Just updated to 2.5 from 2.3. Version 2.5 has 'sidebar' (which is like the 'blocks' in the old version) and a new feature called 'vertical menu'.

I liked making the vertical menu when I designed my first theme, and it works fine (ie. like the normal, vertical drupal menus), with two exceptions:

1)
Parent items don't automatically expand on loading, even if the appropriate checkbox is ticked in Drupal.

Now, I didn't export the menu with the 'open levels' option on, because I wanted the menu to be closed by default EXCEPT for the first parent and its child items.

I thought this is the way the menu would work. Is it really supposed to just ignore the drupal 'expand' settings?

2)
The DHTML Menu module does not work with the vertical menu.

I thought the vertical menu would just be normal drupal block; perhaps one that had its CSS geared more toward a menu than the 'sidebar' feature. However, it appears that it is not normal.

Can anyone tell me why/how the vertical menu is different from a normal Drupal block (called 'sidebars' in Artisteer 2.5), and whether it is possible to get DHTML Menu to work with it?

Thanks.
 
usajim

Posted: 8/15/2010
Quote message 

I have also been working with the DHTML menu in Drupal and experiencing the same problems. I believe I have isolated the problem - as to where and why it is located - but don't really want to fuss trying to tweak it. I am wondering if there is a better solution to the fix.

Basically, you should look at three different files:

common_methods.php
block-navigation_left.tpl.php

block.tpl.php

In the common_methods.php file, you will find the code beginning with (around line 442):

function art_vmenu_output($subject, $content) {


This is the code that is used for the actual "vertical menu", which you need to put your navigation into, in order to get your proper styling. The menu should appear as "Left vertical menu" in your Drupal blocks. The menu does expand, but not dynamically, like the DHTML is supposed to work.

Then there is the "Left sidebar" and it is the block.tpl.php file that dictates how this block works. It is this block code that actually works with the DHTML and from what I can tell, it has to do with the following code:

<div class="art-block clear-block block block-<?php print $block->module ?>" id="block-<?php print $block->module .'-'. $block->delta; ?>">


I was trying to figure out a simple way to add the $block->delta to the code within the art_vmenu_output function, but I think I might end up making a mess and wasting time.

If the artisteer developer folks are reading this, I think they will realize that I am pretty close to what needs to be fixed in order to get the DHTML (or any other such menu, I think) to work on their vmenublocks. It would definitely be nice to get it to work.

I also hope that the artisteer developers are studying the aquia_marina Drupal theme. It is quite powerful, as far as the template code and settings available inside the Drupal administration.

Thanks for reading and if anyone has a way to fix this, please help us out!!
 
Licensed-US-Customer

Posted: 8/31/2010
Quote message 

Looks like we are on our own on this one, at least for now. I am a paying customer. I saw this thread and put in a ticket on this one, since I was experiencing the same problem and since usajim had already nailed it, isolating the issue.

After prodding a few times, the support admitted that there is a problem. They don't appear - at this point - able to even offer a code fix in the PHP. I can only hope that they will work on it and fix the problem in an upcoming release of the software. It's a real shame; the DHTML menu is really-really cool.

I think they realize that because of how they wrote the code for the Vertical Menu (at least as far as Drupal is concerned), that they have limited the use of such modules as the DHTML menu. ...What I do know is that the DHTML menu does work in templates like acquia_marina, but will not work with Artisteer templates.

If anyone has an easy fix on this or maybe a step-by-step tutorial, based on their own hacking experience, please share! I see Abland offers a lot of hacking tips and code with Wordpress; maybe he can take a look at this one.

usajim, any more ideas? Did you make any further progress?
 
Licensed-US-Customer

Posted: 9/22/2010
Quote message 

Support says that they may fix it in an upcoming release, but they are not offering any fixes right now, which is not good news. They suggested getting help on the forums here. Yeah right! These forums are pathetic for organization and protecting information and user id's! These forums KILL a lot of people's enthusiasm for Artisteer. And they're not even willing to fix the forums. THEY DON'T SEE A REAL PROBLEM WITH THE FORUMS! Can you imagine?! Someone needs to convince them to pull their head out from between their legs and get this site fixed! And they should offer basic support for fixing issues with WRONG CODING in their Drupal templates!