This project is read-only.

Creating Non-Blog Pages using BE Theme

Topics: ASP.NET 2.0, Themes
Jul 10, 2010 at 6:20 PM

I have BE up and running (it's wonderful, BTW) and I have created themes. But I also want to create some pages (.ASPX) pages whose content I'll build in HTML/CSharp, but I want them to use the current theme. I *could* create ASPX pages and set their MasterPage to the same MasterPage that I'm using for the theme, but I was hoping to have my page automatically use whichever theme is set in BE instead of effectively hard-coding the MasterPage. This way, if I change the theme in the BE admin tools, my plain-old ASPX pages will also change which master page, etc. they use.

Would love any advice you can provide. Thanks.


Jul 10, 2010 at 9:49 PM

All you need is your page to inherit from BlogEngine.Core.Web.Controls.BlogBasePage. Look at archive.aspx or contact.aspx for example.

Jul 11, 2010 at 12:07 AM

Thank you so much. EXACTLY what I needed! I am blown away by the quality of this thing - and your help.