Custom Template in package

Permalink
I'm building my theme using a package and have a custom autonav inside of my theme in blocks. I can add a new autoblock ok and assign the custom template to the block and it displays fine.

However I want to hardcode my autonav but it won't attach or render the template. If I change the path to templates/breadcrumb it reads it ok but when I use the path templates/sauaside it won't render it although it works correctly when I add it as a block and not hard code it.

$nav = BlockType::getByHandle('autonav');
$nav->controller->orderBy = 'display_asc';
$nav->controller->displayPages = 'top';
$nav->controller->displaySubPages = 'all';
$nav->controller->displaySubPageLevels = 'custom';
$nav->controller->displaySubPageLevelsNum = 1;
$nav->render('templates/sauaside');


It's in my packages/mypackages/mypackagename folder

View Replies:
ServersAustralia replied on at Permalink Reply
It turns out is was reading the autoblock in my packages folder but not my view.css file. I moved my css into my main stylesheet and it's fine