[TYPO3-english] How to format "textpic" bloc?

Søren Madsen sma at science.au.dk
Sat Oct 23 18:43:00 CEST 2010


On 22/10/2010, at 18.02, Benoit Montereau wrote:

> Surely a very stupid question but my Typo3 installation make the following
> (I supposed default) output for Text with Image (textpix) blocs:
> 
> <div id="c216" class="csc-default">
> <h1>Title</h1>
> <div class="csc-textpic csc-textpic-intext-left"><div
> class="csc-textpic-imagewrap csc-textpic-single-image"><img src="
> typo3temp/pics/93e2b52721.jpg<http://www.typo3forum.net/forum/view-source:http://www.neyruz.ch/typo3temp/pics/93e2b52721.jpg>"
> width="150" height="150" border="0" alt="" /></div><div
> class="csc-textpic-text"><p>The text, the text...</div>
> ...
> 
> Now I would like to change this because <h1> should not be used in my case
> and the title just just be inserted before the text.
> 
> Question: how can I do that?? I found a lot of explanation with TS config to
> do or element like
> 
> <!--  CONTENT ELEMENT, uid:395/textpic [begin] -->
> <a id="c395"></a>
> <!--  Header: [begin] -->
> <div class=
> ...
> To insert, but where??
> 
> Does not a easier way (for ex. a html file) to change the way the different
> typo3 blocs look like?

Yes - there is a much easier way.
All the standard content elements are configured with a default typoscript setup called "CSS Styled Content".

If you ie. wish to change the default wrapping of the text content element, you would alter this with typoscript . like this:
tt_content.textpic.20.text.wrap = <div class="csc-textpic-text"> | </div>

Open the Typoscript Object Browser, open the tt_content branch, and there you'll find all the typoscript definitions for standard content elements.

You can either change these definitions on your root level template if you want to change them for all your pages – or insert an extension template at any given page, and the changes will only apply to this page, and any given sub pages.

PS. The reason you get a h1, is because you chose "Header 1" - that's what Header1, Header 2 etc. does - outputs h1, h2 etc.

Hope this helps a bit. 

Kind regards,
Søren Madsen



More information about the TYPO3-english mailing list