Firstly I am a NOOB using Sitefinity.
For the site I am working on we want to develop our own layout for blog posts using a Custom Control Widget.
So far I have:
1. Created a template which points to a master page. The master page has one contentplaceholder on it.
2. Created a page which uses the above template and I can drag my custom control onto the page within the widget area.
However when I publish the page and try to browse a blog post I simply get a blank page.
The intersting thing that is if I drag the Blog Posts widget onto the page as well I then get the post listed twice - once from the Blog Posts widget, and once from my custom control.
The initial part of my code behind file is below:
string url = Request.RawUrl.ToString();
int lastSlash = url.LastIndexOf("/");
if (url.LastIndexOf("/") > 0)
url = url.Substring(url.LastIndexOf("/") + 1);
Post post = svc.GetPost(url); //custom method to return post data
Is anyone able to enlighten as to what I need to do to get my page working ?