Replies: 2 comments 1 reply
-
Section ContentSection content can contain phrasing content and block. The flow content is understood in its semantic meaning. For example a sectionContent := ( helixFlowContent | block )*; BlocksA helix block is identified by nested The <div class=”blockname”>
<div>
<div>
<p>Hello, World.</p>
</div>
</div>
</div> block := "<div class=" blockClass ">" blockRow+ "</div>";
blockClass := blockName blockOptions*;
blockRow := "<div>" blockCell+ "</div>";
blockCell := "<div>" helixFlowContent* "</div>"; interface Block {
name: string;
options: string[];
children: [ BlockRow ]*;
}
interface BlockRow {
children: [ BlockCell ]*;
}
interface BlockCell {
children: [ FlowContent ]*;
} |
Beta Was this translation helpful? Give feedback.
-
FWIW, if at some point you need more semantics in the HTML, note that we've been using HTML Microdata for the Universal Editor, and that works well. |
Beta Was this translation helpful? Give feedback.
-
Semantically, a Helix Generic Content document follows the HTML5 content model, with some limitations.
Note that the document generated by the rendering pipeline can contain more elements than the ones that describe the semantic content. eg. the pipeline includes the
head.html
verbatim, which can contain any metadata elements or gibberish.outline
Since the overall structure is a HTML5 document, it is not described here too formally, but given in exemplary form:
Metadata content
Helix recognises the
<meta>
and<title>
metadata elements. All others are ignored on import, but can be present on export.Header content
Always empty (TBD)
Footer content
Always empty (TBD)
Main Content
All the content that semantically maps to document semantics of an individual page or fragment is found in the main-content content section of the markup. It consists of default content in sections and blocks.
The following html elements, along with their respective semantics are understood; those are a subset of the flow content defined by html.
Beta Was this translation helpful? Give feedback.
All reactions