[TYPO3-english] Issue with Content Type "Divider" and an HTML 5 website
J. Adam Craig
jadamcraig at gmail.com
Sun Nov 25 00:58:22 CET 2012
Hello!
I am experiencing an issue adding a Divider content type to a new TYPO3
website on version 4.5.22, which I am trying to build using HTML5 standards.
When I add an element of type "Divider", TYPO3 generates the following HTML
output:
<!-- CONTENT ELEMENT, uid:6/div [begin] -->
<div class="default" >
<!-- Div element [begin] -->
<div class="divider"><hr /></div>
<!-- Div element [end] -->
</article>
<!-- CONTENT ELEMENT, uid:6/div [end] -->
The anticipated output should be:
<!-- CONTENT ELEMENT, uid:6/div [begin] -->
<article class="default" >
<!-- Div element [begin] -->
<div class="divider"><hr /></div>
<!-- Div element [end] -->
</article>
<!-- CONTENT ELEMENT, uid:6/div [end] -->
Content rendering works well with all other content types that I've tried
so far. I'm using the following TypoScript to enable HTML5 features, based
on this tutorial<http://www.typo3-addict.com/2011/04/typo3-a-basic-html5-tutorial/>
:
# Configure HTML5 compatibility
config {
doctype = html5
xmlprologue = none
}
# Change <div id="c#"> in <section id="c#">
tt_content.stdWrap.innerWrap.cObject.default {
10.value = <article id="c{field:uid}"
30.value = >|</article>
}
plugin.tx_automaketemplate_pi1 {
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
DIV.all = 1
HEADER.all = 1
FOOTER.all = 1
NAV.all = 1
}
}
# Insert HTML5 compatibility for older browsers
[browser = msie]&&[version = <9]
page.includeJS {
file1 = http://html5shiv.googlecode.com/svn/trunk/html5.js
file1.external = 1
}
[end]
With my thanks,
-- Adam
More information about the TYPO3-english
mailing list