Add Autonav Block - Concrete5


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. $bt = BlockType::getByHandle('autonav');
  3. $bt->controller->displayPages = 'top';
  4. $bt->controller->orderBy = 'display_asc';
  5. $bt->controller->displaySubPages = 'all';
  6. $bt->controller->displaySubPageLevels = 'custom';
  7. $bt->controller->displaySubPageLevelsNum = '1';
  8. $bt->render('templates/header_menu');
  9. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.