Hi!
You can make use of
Something like I have added in else {} below:
if the user clicks an entry in the Blog's "Archive" and filter the blog posts by dates
Just fine-tune it the way you like :)
/Vitaly
You can make use of
Composite.Core.Routing.Pages.C1PageRoute.GetPathInfo()
to get the path info and append it to the title in the Composite.Community.Blog.BlogRenderer function.Something like I have added in else {} below:
<head>
@if (IsBlogItem)
{
<title>
@CurrentBlogItem.Title
</title>
<meta name="description" content="@CurrentBlogItem.Teaser" />
}
else
{
string pathInfo = Composite.Core.Routing.Pages.C1PageRoute.GetPathInfo();
if (String.IsNullOrEmpty(pathInfo) == false)
{
<title>@CurrentPageNode.Title - @pathInfo.TrimStart('/')</title>
}
}
<link rel="alternate" type="application/rss+xml" title="@CurrentPageNode.Title" href="/BlogRssFeed.ashx?bid=@CurrentPageNode.Id" />
<link id="BlogStyles" rel="stylesheet" type="text/css" href="~/Frontend/Composite/Community/Blog/Styles.css" />
</head>
Please note that the code above will equally show the date (year/month) gotten from the path infoif the user clicks an entry in the Blog's "Archive" and filter the blog posts by dates
Just fine-tune it the way you like :)
/Vitaly