ASPX templates
Version 7.x > ASPX templates > Master Page Not Editable View modes: 
User avatar
Member
Member
anwar.ubed-gmail - 6/3/2013 1:57:44 AM
   
Master Page Not Editable
Could you please help me to make completely editable master page .
i am using below codes for this but in cms desk there is no option for edit only view option is visible.

i am using blank.master with the following code
<%@ Master Language="C#" AutoEventWireup="true" Inherits="CMSTemplates_BlankASPX_Blank"  CodeFile="Blank.master.cs" %>

<%@ Register Src="~/CMSWebParts/General/AdminActions.ascx" TagName="AdminActions"
TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/Ecommerce/ShoppingCart/ShoppingCartMiniPreviewWebPart.ascx"
TagName="ShoppingCartMiniPreview" TagPrefix="cms" %>
<%@ Register Assembly="CMS.Controls" Namespace="CMS.Controls" TagPrefix="cms" %>
<%@ Register TagPrefix="UC" TagName="EditableText" Src="~/CMSWebParts/Text/editabletext.ascx" %>
<%@ Register Src="~/CMSWebParts/General/CSSStyleSelector.ascx" TagName="CSSStyleSelector"
TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/Localization/languageselectionwithflags.ascx" TagName="languageselectionwithflags"
TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/Navigation/cmslistmenu.ascx" TagName="listmenu"
TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/SmartSearch/SearchBox.ascx" TagName="SearchBox" TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/navigation/cmsbreadcrumbs.ascx" TagName="breadcrumbs"
TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/Viewers/Documents/cmsuniview.ascx" TagName="DocumentHierarchicalViewer"
TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/Text/statictext.ascx" TagName="PoweredByKentico"
TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/Membership/Logon/logonminiform.ascx" TagName="logonminiform"
TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/Membership/Logon/signoutbutton.ascx" TagName="SignOutButton"
TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/Membership/Logon/currentuser.ascx" TagName="currentuser"
TagPrefix="cms" %>
<%=DocType%>
<html class="no-js">
<!--<![endif]-->
<head id="Head1" runat="server">
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<asp:Literal runat="server" ID="ltlTags" EnableViewState="false" />
<link rel="shortcut icon" href="/images/favicon.ico"/>
<link href="~/CMSPages/GetResource.ashx?stylesheetname=normalize.css" type="text/css"
rel="stylesheet" />
<link href="~/CMSPages/GetResource.ashx?stylesheetname=main.css" type="text/css"
rel="stylesheet" />
<link href="~/CMSPages/GetResource.ashx?stylesheetname=layout.css" type="text/css"
rel="stylesheet" />
</head>
<body class="<%=BodyClass%>" <%=BodyParameters%>>

<form id="form1" runat="server">
<asp:PlaceHolder runat="server" ID="plcManagers">
<ajaxToolkit:ToolkitScriptManager ID="manScript" runat="server" EnableViewState="false" ScriptMode="Release"/>
<cms:CMSPortalManager ID="manPortal" runat="server" EnableViewState="false"/>
</asp:PlaceHolder>
<cms:ContextMenuPlaceHolder ID="plcCtx" runat="server" />


<div class="zoneTopInfo">
<div class="container">
<div class="master navBg">
<div class="mainWrapper">
<div class="main">
<div class="logo">
<a href="/">
<img src="/images/micromax-logo.png" alt="Micromax - Nothing like Anything"></a>
</div>
<nav id="smoothmenu1" class="ddsmoothmenu">
<cms:listmenu runat="server" ID="wM" Path="/%" ClassNames="CMS.MenuItem" MaxRelativeLevel="2"
WhereCondition="MenuItemGroup <> 'footer' OR MenuItemGroup IS NULL" RenderCssClasses="True"
ItemIdPrefix="tm" HideControlForZeroRows="False" ZeroRowsText="There are no menu pages."
CacheDependencies="##DEFAULT##" />
</nav>
<div class="socialLinks">
<ul>

</ul>
<form id="formSearch" action="/search.aspx" method="post">
<input type="text" name="inputSearch" class="inputSearch" value="Search" onfocus="if(this.value == 'Search') { this.value=''; }"
onblur="if (this.value == '') { this.value='Search'; }">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="zoneMainContent">
<asp:ContentPlaceHolder ID="plcMain" runat="server">

</asp:ContentPlaceHolder>

</div>


<div class="container">
<div class="master footerBg">
<div class="mainWrapper">
<div class="mainFooter">
<div class="top">
<ul>
<li class="width230">
<div class="logo">
<img src="/images/micromax-logo-footer.png" width="138" height="33" alt="Micomax India"></div>
<p>
Micromax House,<br>
697, Udyog Vihar, Phase-V,<br>
Gurgaon-122022 (Haryana)<br>
Tel: +91-124-4811000<br>
Fax: +91-124-4009603<br>
Email: <a href="mailto:info@micromaxinfo.com">info@micromaxinfo.com</a>
</p>
</li>
<li class="hideInMobile">
<h2>
<a href="/about-us.aspx">ABOUT Us</a></h2>
<%-- <a href="javascript:;">History</a><br>
<a href="javascript:;">Vision and Mission</a><br>
<a href="javascript:;">Excellence</a><br>
<a href="javascript:;">Press</a></li>--%>
<li class="hideInMobile">
<h2>
<a href="/products.aspx">Products</a></h2>
<%=strFooterProductsLink %>
</li>
<li class="hideInMobile">
<h2>
Support</h2>
<a href="/support.aspx">Support Center</a><br>
<a href="/store-locator.aspx">Store Locator</a><br>
<a href="/downloads.aspx">Download</a><br>
<a href="/products-archive.aspx">Archive</a>
<%-- <a href="javascript:;">Application Store</a><br>
<a href="javascript:;">IMEI information</a> </li>--%>
<li class="width160">
<h2>
<a href="/contact-us.aspx">COntact us</a>
</h2>
</li>
</ul>
</div>
<div class="bottom">
<div class="left">
<a href="/privacy-policy.aspx">Privacy Policy</a> <a href="/terms-of-use.aspx">Terms
of Use</a></div>
<div class="right">
© 2012 Micromax. All rights reserved
</div>
</div>
</div>
</div>
</div>
</div>

</form>

</body>
</html>

In these codes i have used three containert one is for header and second is for content and third for footer.please tell me how to make these three container editable ?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 6/3/2013 7:34:07 AM
   
RE:Master Page Not Editable
Hello.

On ASPX based page template, you can use CMSDesk to edit only content of some editable controls, like CMSEditableRegion control. Or, you need to add Portal engine functionality as described here.

However, a template itself can be edited via Visual Studio only. Please see this link for differences between Portal engine and ASPX based templates.

Best Regards,
Radek Macalik

User avatar
Member
Member
annaharris170-gmail - 6/4/2013 7:53:32 AM
   
RE:Master Page Not Editable
CMSdesk is a nice platform to edit ASPX based templates.