Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

$SilverStripeNavigator not actually including the navigator


Go to End


3 Posts   2451 Views

Avatar
henno

Community Member, 6 Posts

9 June 2007 at 3:52pm

Edited: 09/06/2007 3:52pm

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)

Avatar
Andante

Community Member, 231 Posts

11 June 2007 at 9:53am

Try adding the following line to your _config.php:

Director::set_environment_type('dev');

Avatar
henno

Community Member, 6 Posts

13 June 2007 at 4:00pm

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)?