I have dug through the code base, searched Google, this site & StackOverflow, and even downloaded a bunch of themes in case I stumbled over the solution.
In this section of the site:
3.4 - Code behind Considerations
While the standard BlogEngine.NET themes currently don't use the code behind, it doesn't mean it can't be used.
This is a great place to check what page (or type of page) is being displayed and turn on/off sections of the master page among other things.
Can anybody please enlighten me as to how I can detect what kind of a page is being displayed? IE is this a category view, or a post view etc?
The scenario I am trying to develop is to insert a custom css reference that will modify the header graphic under certain categories. I will also need to customise the individual post view page if it has this category in it.
I have tried to tackle this at the masterpage level but im stuck as i dont know how to detect the post type, category, etc.
I have started to tackle this at the post.aspx / default.aspx but i am reluctant as it would mean hardcoding references to themes in the outer pages. I'm not looking for the ultimate generic solution but this feels a little bit too messy for my liking...
Thanks for any advice!