Adding System Pages to Auto-Nav1 user found helpful
EDIT: Still haven't figured it out.
If you aren't using pretty URLs it might be something likehttp://yoursite.com/index.php/site-stuff/...
but I'm not one hundred percent sure about that. You could also go into the database and try to change the stored paths under PagePaths and then click browse in the table view, but i don't know if that will screw it up or not.
ppID cID cPath 1 5 /login 2 6 /register 3 7 /profile 4 8 /profile/edit 6 10 /profile/avatar 7 11 /profile/messages 8 12 /profile/friends 9 13 /page_not_found 10 14 /page_forbidden 11 15 /dashboard 12 16 /dashboard/sitemap 13 17 /dashboard/sitemap/full 14 18 /dashboard/sitemap/explore 15 19 /dashboard/sitemap/search
Now I have it up and running again and I need help with the original problem.
I have created an Alias of the Profile page and its subpages under the Page that I want it in, and tried to create a new auto-nav of the profile page and its subpages. It adds Profile, but not the subpages. But the link doesn't work. I get a 404 error when I click it.
public $displaySystemPages = false;
Change that to true. Unfortunately, there's no way to change this through an interface (though you can if you're hardcoding the block into a template).
1. This is a core file, so any updates to the core will overwrite this. The best way I can think of to solve this is to copy the entire block to your blocks directory and rename it appropriately (I don't think you can just duplicate the controller). Or just remember to make this same change after upgrading.
2. This will "expose" all system pages in the nav, including some pages that aren't very helpful without a parameter (such as /profile). You can always set the 'exclude from nav' attribute on these pages.
You can use
$controller->displaySystemPages = true;
in your template, so that you do not override your core file.
ie, if you're using it as a "block", by adding it through the "edit page" interface, is there any way to do this?
Ie root/blocks/autonav/templates/header_nav/view.php <-- change within this
then if you are loading from a page left click block go to "Custom Template" choose your new Template to apply.
From a Scrapbook you use "Custom Template" link and if your including the global block(stored in the scrapbook) within you header.
$block = Block::getByName('Header_Navigation'); if( $block && $block->bID ) $block->display('templates/header_nav');