[TYPO3] Own CSS class names for each CE

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Aug 25 13:46:21 CEST 2008


Marcus Biesioroff wrote:
> I'm wondering if is that possible to define own CSS class name for
> individual ContentElement placed via standard way (not as a subpart
> from main template's TS)
> 
> I know that I can play with wraps, when placing a CE with TS, but i
> need a way to define class names for normal placed elements.

You will have to play with wraps anyway. Simplest way is to use any existing field (like nav_title) for such class names. In TS you would check if it is set and generate appropriate wrap.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/pages/book-reviews/presentation-zen-by-garr-reynolds/


More information about the TYPO3-english mailing list