Hi,

I'm using the superfish module and I have noticed a conflict between acquia marina and it after update to 6.x-3 version. The problem is that superfish menus of superfish module don't show 2nd level items (drop-down doesn't appear). In the old, 6.x-1 versions it worked fine.

Obviously the problem comes from acquia marina also using superfish javascript now.

Comments

jeremycaldwell’s picture

Sounds about right to me. Did you delete your existing install of Acquia Marina before adding the newer version? There might be some conflicts there as well. And now that the theme Fusion Core comes with the superfish menus there is no need for the module so you can remove that and you should be all set. Also be sure to clear your cache on the performance page so everything is refreshed once updated.

1mundus’s picture

I deleted the old version before adding the new one. I have deleted all the caches.

I need Superfish module because of navbar layout. I want to display 2nd level items as horizontal drop-down and then the 3rd level (2nd level subitems) appears as vertical drop-down. I'm not sure I can do this with Acquia Marina and Fusion.

jeremycaldwell’s picture

You might be able to modify the included superfish javascript to work like that or write a custom "template.php" for your theme that handle this. I know this bit of code added to a custom "template.php" will make the 2nd level menu items horizontal but it also affects the 3rd level menu items. You can probably recode it to work the way you want though if you review the code you have now and migrate it to the new theme that includes it.

<?php

function fusion_acquia_marina_preprocess_page(&$vars) {
  // Add Superfish navbar class if dropdown enabled
  if ($vars['primary_links'] && theme_get_setting('primary_menu_dropdown') == 1) {
      $vars['primary_links_tree'] = preg_replace('/<ul class="menu sf-menu/i', '<ul class="menu sf-menu sf-navbar', $vars['primary_links_tree'], 1);
  }
}
1mundus’s picture

I tried this code, but it doesn't work for me. I created template.php and added it to acquia_marina folder. Then I tried with adding the same code to fusion core template.php, but it also didn't work.

But even if it works, I don't know php and I don't know how to customize it to show 3rd level vertically.

Is there a chance that this functionality will be added to acquia marina in beta version?

jeremycaldwell’s picture

Status: Active » Closed (works as designed)

We won't be expanding the menu options like this for Acquia Marina but you can look around online and work with other Superfish jQuery scripts to modify those as needed: http://users.tpg.com.au/j_birch/plugins/superfish/#sample4

Best of luck!