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

Open
bryanjd opened this issue Nov 30, 2016 · 0 comments
Open

"GrandparentNode" AttributeTarget #455

bryanjd opened this issue Nov 30, 2016 · 0 comments

Comments

@bryanjd
Copy link

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("ArchiveDay")]
[SiteMapTitle("ArchiveMonth", Target = AttributeTarget.ParentNode)]
[SiteMapTitle("ArchiveYear", Target = AttributeTarget.GrandparentNode)]
[Route("archives/{year}/{month}/{day}")]
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant