if I have enable search box, but don't want to secondary links, not possible. Should have include conditional there

at page.tpl.php

instead of print theme('grid_block', theme('links', $secondary_links), 'secondary-menu');

change to

if ($secondary-links): print theme('grid_block', theme('links', $secondary_links), 'secondary-menu'); endif;

CommentFileSizeAuthor
#1 prosper-toggle.png28.02 KBjeremycaldwell

Comments

jeremycaldwell’s picture

StatusFileSize
new28.02 KB

Removing the secondary menu is working correctly for me locally. How are you enabling and disabling the secondary menu? You should be able to toggle it on the theme's configuration page. If that is not working for you please let us know. Attached is a screenshot showing the correct toggle for reference.

stephthegeek’s picture

Status: Active » Fixed

Going to assume fixed with no report back

philingle’s picture

Status: Fixed » Needs review

I have the same issue. I have tried turning the secondary links off as per the image above for 'global settings', 'acquia prosper', 'fusion core' and 'fusion starter' and they are still showing.
I am using the 6.x-1.0-beta3 version of fusion and acquia prosper.

jeremycaldwell’s picture

Have you updated to the latest version of Fusion and Acquia Prosper? Even though there is no if/then statement for the secondary menu it won't print if the checkbox is disabled for Acquia Prosper's secondary menu. Not sure why it's not working on your server though as every other place I've tried it it works correctly.

najibx’s picture

not using the Jan 11 version. but just use my old method. in page.tpl.php, there is

<?php if ($header_top || $secondary_links || $search_box): ?> so without a conditional, if you for instance have either one, say have search_box, automatically, the $secondary_links also being printed?

Todd Young’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta4

Me too, I'm in 6.x-1.0-beta4 and I've put the secondary menus at the postcript area where I like them, but cannot turn them off at header top even by disabling in all themes and flushing cache. They just won't go away? I have no search box enabled and nothing else in those areas.

robert_pascal’s picture

been using drupal for 2 days now and php newbee (please let me know if im doin this wrong)
cause so far it worked for me

this was not the secondary menu, its actually a duplicate left in the header.

solution
in ../themes/acquia_prosper/page.tpl.php

<!-- primary-menu row: width = grid_width -->
      <div id="header-primary-menu-wrapper" class="header-primary-menu-wrapper full-width">
        <div id="header-primary-menu" class="header-primary-menu row <?php print $grid_width; ?>">
          <div id="header-primary-menu-inner" class="header-primary-menu-inner inner clearfix">
         <!--?php print theme('grid_block', $primary_links_tree, 'primary-menu'); ?-->    //comment this line out
          </div><!-- /header-primary-menu-inner -->
        </div><!-- /header-primary-menu -->
      </div><!-- /header-primary-menu-wrapper -->

      <!-- preface-top row: width = grid_width --> 
jeremycaldwell’s picture

Assigned: Unassigned » sociotech
stephthegeek’s picture

Assigned: sociotech » Unassigned
Status: Needs review » Postponed (maintainer needs more info)

I'm really not sure exactly what's going on here. We can't replicate this. The theme() functions already check if it's there or not, so you don't need a conditional around them.

stephthegeek’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)