Portal Engine
Version 2.x > Portal Engine > Support of MasterPageFile? View modes: 
User avatar
Member
Member
ioan - 11/13/2006 11:43:02 AM
   
Support of MasterPageFile?
Hi,

I have been playing with version 2.0 for a while and i like the concept of webparts. But i miss the simplicity and speed of development with masterpagefiles. I tried to incorporate my designers complex webdesign into version 2.0 with webparts, but things are just too complex, confusing or timeconsuming.
My question is: Is there a way to use masterpagefiles in version 2.0? I'd like to use masterpagefiles and the webparts for the variable content part.

Regards,

ioan

User avatar
Guest
admin - 11/13/2006 5:49:35 PM
   
Re: Support of MasterPageFile?
Hi Ioan,

the master page content needs to be stored in the root document of the web site.

You can either "assemble" the master page content using Static text web parts that will contain the HTML code and you will insert other web parts between them

... or...

you can place your HTML master page into the page layout code of the root document page template - in this case, the page layout code will contain content placeholder web parts (<cc1:CMSWebPartZone ID="zoneLeft" runat="server" />) like these:

<table>
<tr>
<td>
<cc1:CMSWebPartZone ID="mainMenuAndLogo" runat="server" />
</td>
</tr>
<tr>
<td>
<cc1:CMSWebPartZone ID="mainContent" runat="server" />
</td>
</tr>
</table>

... or ...

you can still use the classic ASP.NET master pages (.master files) and place the page CMSPages/PortalTemplate.aspx inside it.

Best Regards,