Jump to:

22976 Posts in 11493 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » Lost 'TabMenu' in relocated site

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 248 Views
  • natty
    Avatar
    Community Member
    2 Posts

    Lost 'TabMenu' in relocated site Link to this post

    Greetings! I am a developer with no familiarity with Silverstripe at all and need a little guidance. I've been tasked with relocating a SS site to a new server, and almost have it perfectly transferred but for a couple of issues. The site has a secondary menu below the main page banner and this seems to be controlled in mysite/code/Page.php with this function:

    function topTabbers() {
    $whereStatement = 'ShowInTabMenu = 1 AND ShowInMenus = 0';
    return DataObject::get('Page', $whereStatement);
    }

    It should be displayed within a div whose class is nav-menu-banner but nothing appears. Trouble is, I've no idea where to look for this. I'm impressed with what I've seen in SS so far, and a little success here will make me look more closely, depending on the degree of community support.

    So - can anyone suggest where I look to find why this menu is not appearing?

    Thanks in advance, and Merry Christmas!

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Lost 'TabMenu' in relocated site Link to this post

    Have you got any records with ShowInTabMenu set to 1? By the sounds of it, you'll have a tick box in your CMS to activate that option on each page. If no pages have that option set to true then of course that filter will return nothing

  • natty
    Avatar
    Community Member
    2 Posts

    Re: Lost 'TabMenu' in relocated site Link to this post

    Thanks Willr. No, there are no such records. For now I've manually added the missing html to the template files, which solves the immediate problem, but it would be good to understand where this went wrong, if anyone has any suggestions.
    Martin

    248 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.