Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » $SilverStripeNavigator not actually including the navigator

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 2092 Views
  • henno
    Avatar
    Community Member
    6 Posts

    $SilverStripeNavigator not actually including the navigator Link to this post

    When I include $SilverStripeNavigator just before my </body> tag in mysite/templates/Page.ss nothing actually changes.

    If I add a debug line in SilverStripeNavigator() in sapphire/core/control/ContentController.php (something like echo "this function is successfully being called by the template";) it shows that the function itself is being called, but nothing is being displayed except for that echo.

    Any ideas?

    (And before you ask, I am logged into the CMS, I have tried different users, and also a half a dozen browsers)

  • Andy
    Avatar
    230 Posts

    Re: $SilverStripeNavigator not actually including the navigator Link to this post

    Try adding the following line to your _config.php:

    Director::set_environment_type('dev');

  • henno
    Avatar
    Community Member
    6 Posts

    Re: $SilverStripeNavigator not actually including the navigator Link to this post

    Well that worked fine.

    But is there a way to only show that if/when a user is logged into the CMS (ie. after the site is live and no longer in 'dev' mode)?

    2092 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.