Adding to top navigation in Broadleaf Commerce - Step By Step tutorial (with screenshots)
http://new-beee.blogspot.in/2013/09/adding-to-top-navigation.html
Here's a summary of the tut:
Go to Admin > Content Management > Pages > Add new page
Full url: its the slug that will be used for that page give it something like shown. Replace 'testing123' by your own text (do not use spaces, dots etc)
I dont know what the template does, but i had a hunch to choose the 'basic template' so i did.
Note the url you give in this page.
Now save it.
Now go to Catalog > category > Add new category
Give some name, and give the url that you noted above. Url of the page. Here we are telling it that there is a so and so category whose url is that of the page. So when you click on that category you get the page.
From what i have learnt, it seems to me that only categories can be added in primary navigation. a page need to be linked through category to be added into the primary navigation
Select Default category : Primary nav
I am not sure if this is needed, but still lets give a Active start date. I gave an earlier date, just to play safe.
Now in the same category you see some tabs on the top. Well go to the 'Advanced' tab. And scroll down to "All Parent Categories".
Now click on " + Add" and select "Primary Nav" - This step may be unnecessary in some cases, but i just did it to be sure that "Primary nav" is added as a parent category in the new category in every possible way.
Now Save this.
Now go to Catalog > Category > Primary Nav
Go to the 'Advanced' tab
Scroll to 'All Child categories'
then click on "+ Add" And add you newly created category to this lsit.
Now 'SAVE' this.
And Go to you frontend and check if you see your category in the navigation.
If you do, congratulations. Tell me one thing. How many categories are visible on frontend in navigation? less than six? No? Well If some other fine day you categories stop showing up, you can come back here and read ahead.
If you still don't then, your categories are more than 6.
Well Its stupid, but the Broadleaf commerce is designed to have 6 categories in primary navigation max.
We can change that? yes, of course.
Its totally safe, we are just going to change some html files.
My broadleaf site/site/src/main/webapp/web-inf/templates/layout/partials/nav.html
My broadleaf site/site/target/mycompany/web-inf/templates/layout/partials/nav.html
So, find 'blc:categories' and see that it ends with maxResults="6".
Need i say more? Just go ahead and change it. I changed it to 20.
So see ya, until next time. Hope you dont fret about it as much as i had to.
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.