How to put Superfish menu is a templete

Permalink
How to I code my template so that the menu shows up automatically whenever I add a page using that template?

 
jordanlev replied on at Permalink Reply
jordanlev
Are you using the superfish addon from the marketplace or building your own?

If using the pre-built one, you want to add it to your Page Defaults (Dashboard -> Pages and Themes -> Page Types -> click "Defaults" next to each page type), which will add that to any new pages created. You can add it to pages that already exist by clicking on the block in the Page Defaults while in edit mode and choosing "Setup on Child Pages" from the popup.

If you're rolling your own, you're going to want to create a custom template for the autonav block instead of just putting the html/css/javascript in the template. Search around the forums for how to do this -- it comes up a lot.
Then you do the same thing as above, except after you add the autonav block to the page defaults, click on it (while in edit mode) and choose "Custom Templates", then pick the custom template you made.
eastscot replied on at Permalink Reply
Hi, I have tried to follow this thread, I've gone into page defaults etc and can not find have to add superfish adddon in to it.

Can you please advise me how.

Thank you
CC3381 replied on at Permalink Reply
CC3381
1. Go to dashboard
2. Locate and click Page Types under the Pages & Themes
3. You will see a list of all installed page types. Click on the Defaults button of the page you want super fish.
4. A blank page will appear. This is fine.
5. Click the edit button
6. Pick the area that you want the superfish add-on.
7. Click add block
8. Click Superfish
9. set up your defaults for Superfish and than click the add button.
10. Completed! Now Superfish will be included on all pages with the page type that you have selected.


Let me know if this helps.
Danny
CC3381 replied on at Permalink Reply
CC3381
If you are coding your template, try using a global area with a stack to save you the headache of putting your navbar in every page type.

http://www.concrete5.org/documentation/how-tos/developers/concrete5...

Danny