Project

General

Profile

Actions

Feature #26776

closed

Add a separate "CSS Styled content" with support for HTML5

Added by Riccardo De Contardi over 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2011-05-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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>

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #25282: uid of content Element should be wrappt into wrapping div not prepended a-ElementClosed2011-03-08

Actions
Actions #1

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 ;)

Actions #2

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...

Actions #3

Updated by Susanne Moog over 13 years ago

  • Category changed from Frontend to 1050
Actions #4

Updated by Xavier Perseguers over 13 years ago

  • Target version changed from 4.6.0 to 4.6.0-beta1
Actions #5

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!

Actions #6

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

Actions #7

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.

Actions #8

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/

Actions #9

Updated by Xavier Perseguers over 13 years ago

  • Target version deleted (4.6.0-beta1)
Actions #10

Updated by Steffen Ritter over 12 years ago

  • Status changed from New to Resolved

we have this now

Actions #11

Updated by Oliver Hader about 7 years ago

  • Category changed from 1050 to Frontend
Actions #12

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF