Using custom layouts for pages

Topics: Business Logic Layer, Themes
Aug 9, 2011 at 8:18 PM

I recently had to extend the functionality of BE25 to accommodate using a different master page for my BE generated page and my custom additions.  It a fairly simple change, and I documented it on my blog: http://www.vanadiumtech.com/OurBlog/post/2011/08/09/How-apply-a-custom-layout-to-pages-in-BlogEnginenet.aspx.  I welcome your feedback or alternate implementations.

Hope this helps :)

Aug 9, 2011 at 10:12 PM
Edited Oct 24, 2011 at 7:36 PM

Great Article Vanadiumtech.

But could you provide links or screenshots to the custom pages that you needed a separate master page for?

Would like to see what you needed to be made custom that the main master page could not do.

You can also use the "Widget Zone" feature of BE with code behind in the site.master.cs

to select different code for different pages,users, and etc almost anything you can think of with out the use of an additional master page.

My personal Web Development methods is to use everything that is available to you and to use as few code as possible to get it done.

Too me with out seeing what you needed done using a separate master page and with all of the changes that has to be made might be over kill Smile

But, just by looking at it does seems like a nice feature and might be needed for some custom pages but not just sure what can not be done with the "Widget Zones" through ?

Have you tried the "Widget Zones" to do this with code behind code?

If so what could not be done?  That can only be done with a separate master page?

Here's a post on how to use the code behind for the Widget Zone: http://blogengine.codeplex.com/discussions/261227

Looking forward into your response,

Brian Davis

Java Blog

Aug 9, 2011 at 11:37 PM

 

Good Question;

The need for this came from having a completely unique layout on the home page, some landing pages and blog.  The layout on the blog usually consist of a header, nav, middle body and nav col (widgets).

Some of our site designs require a custom layout for the home page, and a variation of it for the landing pages.  The layouts will vary in header designs, column requirements and graphics (background) and so on ...

Some examples of the layouts

http://www.808island.com/hawaiian-vodka.aspx

Here the layout on the home page is much different from the back pages, and would require additional accommodations for the widgets need in the blog.

http://www.muttlynchs.com/Dive-Bar.aspx

This site actual uses the blog engine as a separate app under a virtual folder, but going forward I would like to use the blog engine as the single system for all 3 formats.

Thanks for the Widget suggestion, I'll take a closer look at the implementation.

Aug 10, 2011 at 12:06 AM

Also the use of css can go along way :)

Css is very powerful once you figure out how to apply it to the BE elements :)

Like widget zones, widgets, and etc.

 

You can use css to theme your widgets on the http://www.muttlynchs.com/Blog/ page :)