Is there a way this can be done does anyone have any suggestions?
I have edited MenuAdapter.cs to add the <em> tag. Is there a class any where I can change to make this possible or am I better off just changing MenuAdapter.cs so each class name is incremented at the end?
My very best advice is that you make your own version of a site map provider. After all, you are saying that you want to add some custom information to a typical site map. That strongly suggests that you want a custom site map provider... which is the
title of this article, "Custom Site Map Providers in ASP.NET 2.0" at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/CustSiteMap.asp.
If you get this working, please consider helping others in the community by posting your detailed notes. This sort of question has come up lots of times before. By tweaking the adapters a little and writing your own custom site map provider you can get
some awesome results. It would be great to have someone (you or someone you know, perhaps) write up an article on that subject. Just a thought....
Goose99
Member
65 Points
13 Posts
CSS MenuAdapter
Oct 03, 2006 09:45 PM|LINK
I have been using the css menu MenuAdapter and would like to be able to out put custom css class names for each item for example below:-
<ul id="topnav" class="imgnav clearfix">
<li class="link1"><a href="AboutIndus.asp" title="About Indus"><em></em>About Indus</a></li>
<li class="link2"><a href="IndusTalent.asp" title="Indus Talent"><em></em>Indus Talent</a></li>
<li class="link3"><a href="CurrentProductions.asp" title="Current Productions"><em></em>Current Productions</a></li>
<li class="link4"><a href="CurrentProductions.asp" title="Indus Highlights 2006"><em></em>Indus Highlights 2006</a></li>
<li class="link5"><a href="CurrentProductions.asp" title="Contact Details"><em></em>Contact Details</a></li>
</ul>
Is there a way this can be done does anyone have any suggestions?
I have edited MenuAdapter.cs to add the <em> tag. Is there a class any where I can change to make this possible or am I better off just changing MenuAdapter.cs so each class name is incremented at the end?
Regards Geraint and Thanks
"css friendly adapter"
Russ Helfand
Contributor
3304 Points
744 Posts
Re: CSS MenuAdapter
Oct 04, 2006 04:55 AM|LINK
Groovybits.com
Goose99
Member
65 Points
13 Posts
Re: CSS MenuAdapter
Oct 04, 2006 11:58 AM|LINK
Thanks very much for the help. It should do the job.
You dont know how I would go about adding a tag do you? for example adding a CSS Class tag to each menu item siteMapNode and then calling that ?
Russ Helfand
Contributor
3304 Points
744 Posts
Re: CSS MenuAdapter
Oct 04, 2006 03:46 PM|LINK
My very best advice is that you make your own version of a site map provider. After all, you are saying that you want to add some custom information to a typical site map. That strongly suggests that you want a custom site map provider... which is the title of this article, "Custom Site Map Providers in ASP.NET 2.0" at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/CustSiteMap.asp.
If you get this working, please consider helping others in the community by posting your detailed notes. This sort of question has come up lots of times before. By tweaking the adapters a little and writing your own custom site map provider you can get some awesome results. It would be great to have someone (you or someone you know, perhaps) write up an article on that subject. Just a thought....
Good luck with the project,
Groovybits.com
Goose99
Member
65 Points
13 Posts
Re: CSS MenuAdapter
Oct 16, 2006 09:22 AM|LINK
Thanks very much for your help.
Regards Geraint