Design and CSS styles
Version 7.x > Design and CSS styles > Page with Bare HTML View modes: 
User avatar
Member
Member
steve-ecutek - 4/17/2013 1:39:45 PM
   
Page with Bare HTML
Hello,

Is it possible to create a page that does not get extra meta data, links and javascript added in to it?

We have a site where we have a section that contains previously created newsletter content. I have created a template that includes CSS in the head section, does not inherit any content and includes some basic html. However we are still getting stuff such as <see bottom of email> in the html source. Is there a way we can disable these additions for a particular page, template or section of the site?
These web pages need to be run through premailer in order to produce a newsletter that is readable by all mail readers (as Kentico does not inline CSS for newsletters), so we need to keep the html pure.

Any ideas?

Best regards

Steve

Stuff we want to get rid of below...

(at the top of the page)

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta name="robots" content="noindex,nofollow" />
<link href="/CMSPages/GetResource.ashx?stylesheetname=EcommerceSite" type="text/css" rel="stylesheet"/>
<meta http-equiv="X-UA-Compatible" content="IE=9">
<link href="/CMSPages/GetResource.ashx?stylesheetname=EcommerceSitePrinter" type="text/css" rel="stylesheet" media="print" />

<!--<script type="text/javascript" src="/CMSScripts/lightbox2/prototype.js"></script>
<script type="text/javascript" src="/CMSScripts/lightbox2/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="/CMSScripts/lightbox2/lightbox.js"></script>-->


<!--<script type="text/javascript">
windows.addEvent("domready", function() {
initImageZoom();
});
</script>
<script type="text/javascript" src="/CMSScripts/imagezoom/imagezoom.js"></script>
<link href="/CMSPages/GetResource.ashx?stylesheetname=imagezoom" type="text/css" rel="stylesheet"/>-->



(at the bottom of the page)


<script type="text/javascript">
//<![CDATA[
(function() {var fn = function() {$get("manScript_HiddenField").value = '';Sys.Application.remove_init(fn);};Sys.Application.add_init(fn);})();//]]>
</script>

<script type="text/javascript">
//<![CDATA[
if (typeof(Sys.Browser.WebKit) == 'undefined') {
Sys.Browser.WebKit = {};
}
if (navigator.userAgent.indexOf('WebKit/') > -1) {
Sys.Browser.agent = Sys.Browser.WebKit;
Sys.Browser.version = parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
Sys.Browser.name = 'WebKit';
}
//]]>
</script>
<script type="text/javascript">
//<![CDATA[

WebForm_InitCallback();//]]>
</script>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJODc3OTc4NjAwZGRoAoPa5XjIo5EAG1rRNGrZaHgNpOJXokUli2W/Uokh/g==" />
<script type="text/javascript">
//<![CDATA[
if (window.WebForm_InitCallback) {
__theFormPostData = '';
__theFormPostCollection = new Array();
window.WebForm_InitCallback();
}
//]]>
</script>
</form>




User avatar
Kentico Support
Kentico Support
kentico_romank - 4/18/2013 6:07:50 AM
   
RE:Page with Bare HTML
Hi,

Have you tried to take a look at this https://devnet.kentico.com/Knowledge-Base/portalengine/How-to-modify-default-header-tags.aspx knowledge base article? I believe the article will answer your questions.

Best Regards,
Roman Konicek