[TYPO3-content-rendering] TYPO3 4.7 HTML5 CSC elements could be improved IMHO

Riccardo De Contardi riccardo.decontardi at bhuman.it
Mon May 28 21:53:44 CEST 2012


Let's see if I can explain myself with an example:

This is the rendered HTML of a csc element, type "images only"

<div class="csc-default" id="c37">
    <header class="csc-header csc-header-n2">
      <h2>My header</h2>
    </header>
    <div class="csc-textpic csc-textpic-center csc-textpic-above">
      <div class="csc-textpic-imagewrap">
        <div class="csc-textpic-center outer">
          <div class="csc-textpic-center-inner">
           <figure class="csc-textpic-image csc-textpic-last"><a 
href="my-page/">
     <img width="398" height="189" alt="" 
src="uploads/pics/cover_my-image.jpg"></a>
           </figure>
        </div>
     </div>
   </div>
</div>
</div>

Ok, then...what if I want to change the appereance of the <header> tag 
ONLY for this type of content? As the only external class avaliable
is csc.default which is shared between all elements... I can't!! (Unless 
I want to add some values to the section_frame field)

IMHO it could be better using something like:

<div class="csc-default csc-textpic csc-textpic-center 
csc-textpic-above" id="c37">

What do you think?
Thank you for your support and best regards


-- 

--------------------------------------------
Riccardo De Contardi – TYPO3 Certified Integrator
B Human Srl - www.bhuman.it <http://www.bhuman.it>
Via Canzio, 15 - 20131 Milano
TEL +39-02-20.23.271 - FAX +39-02-20.240.561
--------------------------------------------


More information about the TYPO3-project-content-rendering mailing list