What is the best approach ?
Custom page layout , OOTB layout or fixed layout
Pls share your thoughts.
-Vin
In my opinion fixed layout is fine. If you need HTML5 support then you need to go with custom layout option. Although HTML5 option is coming while creating a page but proper DOCTYPE is not being added on generated HTML source for .page file.
<layout-config> <page-types> <page-type id="html5"> <name>HTML 5</name> <output> <doctype> <document-root>html</document-root> <doctype-public/> <doctype-system>about:legacy-compat</doctype-system> </doctype> <method>html</method> <content-type>text/html</content-type> <omit-xml-declaration>true</omit-xml-declaration> </output> <allowed-layouts> <layout refid="fixed-layout"/> </allowed-layouts> </page-type> </page-types></layout-config>
That's not true. Just stick this in your conf/livesite_customer/pagetype-config.xmlThis produces the legacy-compatible doctype (http://www.w3.org/TR/html-markup/syntax.html#legacy-tool-compatible-doctype) which makes everything happy.Background: LiveSite uses xalan for XSL transformations, and that project can only produce the legacy-compatible doctype. They have no plans to produce a "proper" html5 doctype, at least not until a new major version. That means LiveSite isn't going to be able to produce it either, unless Autonomy replaces that library with something else (not likely).