Feature #26776
closedAdd a separate "CSS Styled content" with support for HTML5
0%
Description
It could be nice & useful having a separate CSS Styled Content TS Setup (in "Include static etc.") that uses HTML5 features
For example, all CE could be wrapped with:
<section id="c1" class="csc-default">...</section>
According to HTML5 Doctor (http://html5doctor.com/the-section-element/),
section is a blob of content that you could store as an individual record in a database.
Another example: <figure>
and <caption>
could be used in text/w image CE:
<figure class="csc-textpic-image ..."> <img src="typo3temp/myimage.jpg" alt="Alt text"> <figcaption class="csc-textpic-caption">my Caption</figcaption> </figure>
Updated by Philipp Gampe over 13 years ago
Do you mind doing this?
You can just edit the default from 4.5 and attach the result here.
We can than decide whether to integrate it into 4.6 or create an extension for shipping the template. But first step first ;)
Updated by Riccardo De Contardi over 13 years ago
Only a little question about the TS Setup of CSS Styled Content:
tt_content.image.20.rendering.dl.fallbackRendering.dl.20.if.isTrue.if.isTrue.data = register:renderGlobalCaption
As far as I can see the only way to "trigger" the state "# Multiple images and one global caption => "ul"" (register:renderGlobalCaption = 1) is setting the constants:
styles.content.imgtext.captionSplit = 0 styles.content.imgtext.imageTextSplit = 0
Is that correct? (BTW: styles.content.imgtext.captionSplit has no description in constants.txt (# cat=content/cImage/etc...) so it does not appear in constants editor) It seems strang that I can't have multiple images each with an alt text, but only one caption...
Updated by Susanne Moog over 13 years ago
- Category changed from Frontend to 1050
Updated by Xavier Perseguers over 13 years ago
- Target version changed from 4.6.0 to 4.6.0-beta1
Updated by Thomas Deinhamer over 13 years ago
Is this being worked on, to get it in before feature freeze?
I've also worked on a similar HTML5 adoption for TYPO3.
Would you be so kind to publish your current work, so I can
have a look at what I can contribute additionally?
Thanks!
Updated by Riccardo De Contardi over 13 years ago
I'm sorry to admit I hadn't had the time to work on this issue myself :(
Some time ago I've made some experiments with css, in order to simplify the HTML; you can find the results here:
http://dl.dropbox.com/u/29099280/20110513_CSC_alpha1.zip
best regards
Updated by Thomas Deinhamer over 13 years ago
Alright, no problem. I also have been to lazy
regarding this feature, although I really wanna have it.
Maybe I can release an extension today or this
weekend which is a HTML5 enhanced CSC version.
Let's see if we can get this into 4.6, otherwise
it will be an extension in the TER anyway.
Updated by Thomas Deinhamer over 13 years ago
I'm working on an extension which
enables HTML5 features for TYPO3.
For now it's only basic stuff, but would
be awesome if someone could check it out -
also if we can get it somehow into TYPO3
before feature freeze on tuesday.
http://forge.typo3.org/projects/extension-hype_html5/repository/
Updated by Xavier Perseguers over 13 years ago
- Target version deleted (
4.6.0-beta1)
Updated by Oliver Hader about 7 years ago
- Category changed from 1050 to Frontend