Couple of questions about creating themes

Topics: Themes
Nov 4, 2008 at 9:40 PM

I've just started to create a new custom theme for BlogEngine, and have a couple of questions:

Is there anyway to tell if the current page is a blog posting or a static page
Is is possible to alter the url's of static pages so they are easier to use, eg so they read

Nov 4, 2008 at 11:47 PM
try something link this:
       protected override void OnInit(EventArgs e)
            BlogEngine.Core.Post.Serving += new EventHandler<BlogEngine.Core.ServingEventArgs>(Post_Serving);


        private void Post_Serving(object sender, BlogEngine.Core.ServingEventArgs e)
            if (e.Location == BlogEngine.Core.ServingLocation.PostList)
//do something this is a postlist


for static pages there is a BlogEngine.Core.Page.Serving event