Could someone please assist me with trying to retrieve blogpost meta description from a bloppost detail page. When I navigate to my site's blog (http://mysite/blog). Then I proceed by clicking ony post (http://mysite/blog/somepost).
I have the instance of the Page (System.Web.UI.Page) and PageSiteNode(Telerik.Sitefinity.Web.PageSiteNode).
Every time I programmatically query the page for meta description i keep getting the page's meta description not the current blogpost's meta description.
Moreover how do i check if the page contains a blogpost?
Thanks in advance
You dont want to get an instance of the Page, you want to get an instance of BlogPost since a page can contain many widgets.
So you should be able to query BlogPosts for "UrlName" which is the human readable slug (unique id) for the post. In your case above .Where(x => x.UrlName == "somepost").
Checking the page for controls is a bit more complicated, do you need this if the above works?