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

"GrandparentNode" AttributeTarget #455

bryanjd opened this issue Nov 30, 2016 · 0 comments

"GrandparentNode" AttributeTarget #455

bryanjd opened this issue Nov 30, 2016 · 0 comments


Copy link

@bryanjd bryanjd commented Nov 30, 2016

I recently came across the need to be able to specify the Title for the "grandparent" node of the current node.

My specific need involved drilling into archived content by year, month, and day. For example, given the snippet below, you might have a breadcrumb similar to: Archives / 2014 / November / 28th.

[SiteMapTitle("ArchiveMonth", Target = AttributeTarget.ParentNode)]
[SiteMapTitle("ArchiveYear", Target = AttributeTarget.GrandparentNode)]
public async Task<ActionResult> PostsByDay(int year, int month, int day)

Is there any interest in adding this functionality?

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.