How to integrate my menu into Concrete 5.7
PermalinkFurther to this, i have also replaced the header and footer with the php code (for example-
<?=$view->inc('my-directory-for-header-area-in-theme-folder/header.php');?>
My question is this. I already had a main navigation menu in my html/ css website before i brought it into Concrete 5.7 and apart from the home page itself, the rest of the menu pages aren't actually set up and don't link anywhere (i'm yet to create those pages and was hoping/ thought that the best way to do this would be via Concrete 5 going forward).
However, how would i get my own menu to work within Concrete 5.7? For example, i have used the 'add page' icon inside the admin/ editor and now created all my pages and sub pages.. but at this stage they have no relation to the menu on the front public facing side of the site.. So i guess what i'm trying to say is how do i get to a point where if i add pages and sub pages in the admin area, they appear in the main menu of my site? Or alternatively, do i even need to do it this way, is it possible or better to just create all of my pages manually in html and css, and then make them editable via Concrete 5? Hope this makes sense and apologies if this all sounds a bit stupid or misunderstood. I'm working through the extensive documentation but still haven't got it clear in my head how this aspect of creating pages works. Any pointers or help would be greatly appreciated.
If i follow the steps you've suggested, when in any given page that i've created and published within Concrete 5, i then select the gear icon and 'design' gives me one option to choose the template (as i have only one template so far), and selecting 'location' looks like something i've already done when creating the pages in the document tree.. but the given page doesn't correspond or populate in the main menu of the site visible on the front end/ public facing side.
You can create a custom template for it, so that the classes of the auto nav match your existing hardcoded nav,
Do you have a link to your website?
When you created your theme, did you include a global area for adding navigation?
A global area is an area that is shared between pages, so a block placed in the global area on one page will display on all other pages that share that specific global area.
To manage your site navigation, you will need an auto-nav block. It will handle getting your site links and displaying them. The auto-nav block will be added to a global area.
https://www.concrete5.org/documentation/using-concrete5-7/in-page-ed...
I recommend switching to the Elemental theme and seeing how the auto-nav block is used in the site navigation.
then you can place it under another page:
- visit the page
- under page design, location, etc (the 2nd icon on the top-left, the wheel), you choose location
- select the parent page
now it should show up in your navigation menu
Of course, you will also need to give your page a title, and when ready publish it.