Control Recursive UL from Sitemapdatasource

This forum is for questions about contributing to the project or proposing features that you would like to develop for the project. 

This thread is closed to new posts. You must sign in to post in the forums.
8/7/2009 5:14:46 PM
Gravatar
Total Posts 8

Control Recursive UL from Sitemapdatasource

  So i wrote a little templated control to generate a recursive ul from the sitemapdatasource. Not sure if it's something that others could use but I figured I'd ask. Basically it looks like this:

 

<portal:RecursiveULMenu ID="client_header" DivID="client_header" DataSourceID="SiteMapData" runat="server" TextField="title" UrlField="url">
<paragraphTemplate>
</paragraphTemplate>
<HeaderTemplate><ul></HeaderTemplate>
<FooterTemplate></ul></FooterTemplate>
<ItemHeaderTemplate><li></ItemHeaderTemplate>
<ItemTemplate>
<a href='<%#Eval("Url") %>'><%#Eval("Text") %></a>
</ItemTemplate>
<ItemFooterTemplate></li></ItemFooterTemplate>
</portal:RecursiveULMenu>

 

Let me know if there is any interest and what the best way to contribute would be... just post here or?

 

Zack

8/7/2009 5:28:45 PM
Gravatar
Total Posts 18439

Re: Control Recursive UL from Sitemapdatasource

Hi Zack,

Given that our menus already render as a nested ul li tree, I'm not sure what you are offering and what the added value you are proposing is? Seems like you are proposing existing functionality. If you see it differently please explain further.

Best,

Joe

8/7/2009 6:09:02 PM
Gravatar
Total Posts 8

Re: Control Recursive UL from Sitemapdatasource

 Hi Joe,

 

Thanks for replying. The idea was that I needed just a list with no javascript or whatnot rendered so that I could use it in conjuction with a flash menu that I wrote. If something similar already exists then pretend I never posted, or better yet tell me where and then pretend I never posted.  

:)

Zack

8/7/2009 6:43:28 PM
Gravatar
Total Posts 8

Re: Control Recursive UL from Sitemapdatasource

I guess the value would be that that my control doesnt render a menu but rather just the hierarchical list that can be formatted however via templates and then styled as needed or as in my case hidden and used as an intermediary datasource for another control (ie not .net that does not support databinding)

in otherwords:

sitemapdatasource ---------> <ul/> -----------> third party menu

Like I said I have no idea if it would be useful to anyone but me, and hopefully I didnt re-invent the wheel. Either way just thought I'd try to add something.

Zack 

8/8/2009 9:43:03 AM
Gravatar
Total Posts 18439

Re: Control Recursive UL from Sitemapdatasource

Hi,

All the menus do is render a heiarchal list of ul and li, the styling comes from css, so if you have a third party menu that can somehow consume that list from the page then it should be able to use the existing rendering.

Maybe whats throwing you off is that many of the skins have split the menu up to have a horizontal top level menu then a vertical menu for pages at deeper levels so in those skins the whole sitemap is not in a single list. But there are other skins where the whole tree renders as a single hierarchal list, see mitchinson-earth,jsavard-mojoportal and others.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.