Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SiteMapPathHelper without Childnodes? #125

Open
gkoletzki opened this issue Jan 11, 2013 · 5 comments
Open

SiteMapPathHelper without Childnodes? #125

gkoletzki opened this issue Jan 11, 2013 · 5 comments

Comments

@gkoletzki
Copy link

Hello,

I use the @Html.MvcSiteMap().SiteMapPath() to create a breadcrumb.
I will create a Breadcrumb with fly out menu for the Child nodes, but I can't do this because
the Childnodes collection is empty and will never filled in the SiteMapPathHelper.BuildModel.

Is any reason why the Childnodes are not filled?

If no... can you change this in the next release.... or can you explain me how I can create a Breadcrumb with fly out menu for childnodes ini the current version.

Thx a lot.

@NightOwl888
Copy link
Collaborator

If I understand correctly, what you describe sounds like a custom scenario that you would need to build your own model and HtmlHelper for. The SiteMapPath and Menu were not designed to work together like this.

I am interested to know why you would want to put a menu on the SiteMapPath and would like to see an example of this functionality if it exists somewhere (a link will do).

@fraabye
Copy link

fraabye commented Apr 22, 2013

If I understand it correctly gkoletzki describes something like this:
http://www.teehanlax.com/blog/the-tabbed-breadcrumb-navigation/

The approach is useful for complex sites, where traditional navigation schemes falls short. It would be a really nice addition to the project.

@NightOwl888
Copy link
Collaborator

Thanks for the link. The article was from 2007 and interestingly none of the links I looked at in the comments have navigation that looks anything like what is in the article.

You did give me some ideas, though. It would be nice to have a way to chain menus together so you can arrange them in a menu > submenu hierarchy - meaning the submenu wouldn't be visible unless you are on the right tab of the main menu. Maybe that can be done already by specifying levels? If not, I see no reason why that can't be done using the positioning information in the site map to drive it.

I haven't worked much with the actual UI components yet - my role here has mainly been to modify the back end to fix the caching issues, enable multi-tenant support, and allow the whole thing to be wired up using DI. I did all of that just to make this component compatible with my site. However, when I get to the point in my project where I am looking for ways to expand the menu, I will probably revisit this issue.

@Ridermansb
Copy link

In my case I wish he exhibited only the current path (nodes without children), and he is showing everyone (including children).

How can I make the. SiteMapPath () show only the current path?

@NightOwl888
Copy link
Collaborator

@Ridermansb - Sorry, I am not sure I understand what you are referring to. Could you add some more details to your question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants