I've just started using composite c1 cms - I set up a site based on the razor / bootstrap example which was working fine but now for some reason the page titles are not displaying.
Instead the markup that is produced is as follows:
<c1marker:marker xmlns:c1marker="http://www.composite.net/ns/asp.net/controls" key="[Composite.Function.Render.Asp.Net.Control.0]">
I'm calling a page template feature from a layout called title of page: @PageTemplateFeature("Title of page")
The code in this feature is as follows:
<html xmlns:f="http://www.composite.net/ns/function/1.0" xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div class="title">
<h1>
<f:function name="Composite.Web.Html.Template.HtmlTitleValue" /> 
</h1>
</div>
</body>
// -------------------------------------------------------------//
I have found the issue in case anyone else has this problem, I was using a template based on HTML boilder plate, the HTML tag was definind as follows:
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
For some reason, it would not work unless I add the xmlns attribute to the html tag:
<!DOCTYPE html>
<!--[if lt IE 7]>
<html xmlns="http://www.w3.org/1999/xhtml" class="no-js lt-ie9 lt-ie8 lt-ie7" lang="@Lang"> <![endif]-->
<!--[if IE 7]> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js lt-ie9 lt-ie8" lang="@Lang"> <![endif]-->
<!--[if IE 8]> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js lt-ie9" lang="@Lang"> <![endif]-->
<!--[if gt IE 8]><!--> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js" lang="@Lang"> <!--<![endif]-->
<head>
As per documentation You have to insert that to ensure that your template should be valid with the use of the specific C1 CMS XML elements for rendering, functions and so on.
You might have also noticed that the code is written in XHTML, not HTML. (Read more on the namespaces and XHTML in the chapter “A Closer Look at the Template Markup” (Sorry due to stack overflow limitation of providing link i cant attach link properly but it is here with spaces- "https: //docs.c1. orckestra . com/ Layout/Xml-Templates/A-Closer-Look-at-the-Template-Markup#_A_Closer_Look").)
In Short its recommended to use it if you want CMS to function properly, Its not based on only HTML Of course it is using HTML but it is using other languages too. Most of the part of page is generated from functions that emits an XHTML document – for instance, Razor Functions or XSLT Functions. Here is Reference if you like to go through. Hope I clarify your doubt.