ChrisCF wrote
I can't seem to get a menu separator between my menu items using DNN:NAV control with DNNMenuNavigationProvider.
I just want to have a simple | between menu items.
Can anyone tell me how to achieve this as I am currently pulling my hair out.
Thanks.
I am sorry to hear that you are having these problems. Looking at the code I see that the DNNMenuNavigationProvider has its separator logic only halfway implemented. I vaguely remember working on the logic and hitting a roadblock, where I realized that unlike solpart we cannot assume the dnnmenu will render using tables, therefore the logic will need to be quite different. In fact, the only place that the logic could be added would be in the DNNMenu itself. Unfortunately, this means you cannot use the separator logic for the DNNMenu until it is enhanced.
However, if all you need is | to display between your items, you can add the following style to accomplish this (or at
least close to it).
.main_dnnmenu_rootitem
{
border-right: red 1px solid;
}
I realize that some people are highly critical of documentation that is not 100% accurate. The nature of development, especially one that is done on a voluntary basis, is that documentation is usually saved as the last item to do, and usually falls off the table and never gets done. When I wrote the documentation for the navigation providers, I decided to document early on in the development phase. Unfortunately, for this example, something that was expected to get completed did not, most likely due to time constraints. And it is the same reason that the documentation did not get updated as well.
I realize to some this answer is not acceptable. All I can say is if you have the time to research the inconsistencies of any document, it would sure help the community to provide any corrections to the core team and eventually they will make their way into the official documents.