| Author |
CMS and Master Pages
|
|
|
| I noticed in VS.NET 2005 that if I create a new MCMS template, it does not
give me the ability to associate it with a Master Page. This option is
greyed out.
But I can create regsular web forms and associate it with a Master Template.
That said, what do I have to do to 'enable' my web forms to be MCMS templates?
Is it just a matter of adding the register tag at the top for MCMS ir is
there more to it?
<%@ Register TagPrefix="cms"
Namespace="Microsoft.ContentManagement.WebControls"
Assembly="Microsoft.ContentManagement.WebControls" %>
Tom
| |
| Andrew 2006-06-28, 1:21 pm |
| I've successfully used master pages with MCMS,
You need to do it by hand but you can simply add the MasterPageFile
attribute to the <%@ Page %> tag at the top of your mcms template.
At any rate mcms templates are, as you say, just normal web form with a
few defaults inserted such as the cms tag definition and the default
console.
Tom wrote:
> I noticed in VS.NET 2005 that if I create a new MCMS template, it does not
> give me the ability to associate it with a Master Page. This option is
> greyed out.
>
> But I can create regsular web forms and associate it with a Master Template.
>
> That said, what do I have to do to 'enable' my web forms to be MCMS templates?
>
> Is it just a matter of adding the register tag at the top for MCMS ir is
> there more to it?
> <%@ Register TagPrefix="cms"
> Namespace="Microsoft.ContentManagement.WebControls"
> Assembly="Microsoft.ContentManagement.WebControls" %>
>
>
> Tom
| |
| Spencer Harbar [MVP] 2006-06-28, 1:21 pm |
| Hello Tom,
Please take a look at http://www.mcmsfaq.com/articles/sp2mp.asp
hth
Spence
www.mcmsfaq.com
> I noticed in VS.NET 2005 that if I create a new MCMS template, it does
> not give me the ability to associate it with a Master Page. This
> option is greyed out.
>
> But I can create regsular web forms and associate it with a Master
> Template.
>
> That said, what do I have to do to 'enable' my web forms to be MCMS
> templates?
>
> Is it just a matter of adding the register tag at the top for MCMS ir
> is
> there more to it?
> <%@ Register TagPrefix="cms"
> Namespace="Microsoft.ContentManagement.WebControls"
> Assembly="Microsoft.ContentManagement.WebControls" %>
> Tom
>
| |
|
| Spencer:
I did as your article link has suggessted but my asp.net 2.0 menu is still
goofy!@#$%
When I create an ew MCMS page by clicking the Switch to Edit link and
selecting the template that's hooked to my aspx page that was based on Master
Page, my menu jumps all over the place.
Can you pprovide any further assistance?
Thanks
Tom
"Spencer Harbar [MVP]" wrote:
> Hello Tom,
>
> Please take a look at http://www.mcmsfaq.com/articles/sp2mp.asp
>
>
> hth
> Spence
> www.mcmsfaq.com
>
>
>
>
| |
| Spencer Harbar [MVP] 2006-06-28, 7:17 pm |
| Hello Tom,
try removing the following element from your web.config: <xhtmlConformance
mode="Legacy"/>
hth
Spence
www.mcmsfaq.com
[vbcol=seagreen]
> Spencer:
>
> I did as your article link has suggessted but my asp.net 2.0 menu is
> still
> goofy!@#$%
> When I create an ew MCMS page by clicking the Switch to Edit link and
> selecting the template that's hooked to my aspx page that was based on
> Master
> Page, my menu jumps all over the place.
> Can you pprovide any further assistance?
>
> Thanks
>
> Tom
>
> "Spencer Harbar [MVP]" wrote:
>
| |
|
| Spencer:
Many thanks! You're agenius.
BTW>>> WHAt is this tag for and what do I not get by removing it?
"Spencer Harbar [MVP]" wrote:
> Hello Tom,
>
> try removing the following element from your web.config: <xhtmlConformance
> mode="Legacy"/>
>
> hth
> Spence
> www.mcmsfaq.com
>
>
>
>
|
|
|
|