[TYPO3-english] Max image width constant

Gregor Hermens gregor at a-mazing.de
Wed Nov 16 13:32:18 CET 2011


Hi Stephen,

Stephen Bungert wrote:

> With the constant editor you can set the max width of an image, is there
> away to change this by column? Not all columns have the same width. Must I
> use css, or can I do this by TypoScript?

csc uses a register named maxImageWidth. Try something like

lib {
  content1 = COA
  content1 {
    wrap = <div id="col1">|</div>
    5 = LOAD_REGISTER
    5.maxImageWidth = 200
    10 < styles.content.get
  }
  content2 = COA
  content2 {
    wrap = <div id="col2">|</div>
    5 = LOAD_REGISTER
    5.maxImageWidth = 600
    10 < styles.content.getRight
  }
}

hth
Cheers,
Gregor
-- 
http://www.a-mazing.de/   |   Certified TYPO3 Integrator



More information about the TYPO3-english mailing list