Re: [TYPO3-english] Max image width constant
Hi, Stephen. My preffered way is: # Different MaxW for different columns tt_content.image.20 { maxW maxW.cObject = CASE maxW.cObject { key.field = colPos 0 = TEXT 0.value = {$styles.content.imgtext.maxWNormal} 1 = TEXT 1.value = {$styles.content.imgtext.maxWLeft} 2 = TEXT 2.value = {$styles.content.imgtext.maxWRight} } } Surely, you need to define styles.content.imgtext.maxWNormal, styles.content.imgtext.maxWLeft, styles.content.imgtext.maxWRight in your TS constants. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
[TYPO3-english] Max image width constant
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? Stephen. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Max image width constant
You can change it with renderObj like this: LEFT_COLUMN = CONTENT LEFT_COLUMN { table = tt_content select.where = colPos = 2 renderObj { image.20 { maxW = 160 maxW.override.data = 1 maxWInText = 160 maxWInText.override.data = 160 } } } -Ursprüngliche Nachricht- Von: typo3-english-boun...@lists.typo3.org [mailto:typo3-english-boun...@lists.typo3.org] Im Auftrag von Stephen Bungert Gesendet: Mittwoch, 16. November 2011 12:38 An: typo3-english@lists.typo3.org Betreff: [TYPO3-english] Max image width constant 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? Stephen. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Max image width constant
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 ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english