[TYPO3-english] Issue with Content Type "Divider" and an HTML 5 website
J. Adam Craig
jadamcraig at gmail.com
Sun Nov 25 03:46:53 CET 2012
I seem to have resolved my own problem. Walking away from the issue for a
few hours led me to think of a new set of keywords to use to describe the
issue to Google, which led me to this
post<http://www.typo3.net/forum/beitraege/sonstiges-2/106214/>.
Turns out the solution was to change this:
tt_content.stdWrap.innerWrap.cObject.default.10.override.cObject.value =
<div
to this:
tt_content.stdWrap.innerWrap.cObject.default.10.override.cObject.value =
<article
Simple enough. Thanks!
-- Adam
On Sat, Nov 24, 2012 at 6:58 PM, J. Adam Craig <jadamcraig at gmail.com> wrote:
>
> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list