[TYPO3-templavoila] Setting a Img-Width Limit per Container
Dmitry Dulepov [typo3]
dmitry at typo3.org
Sat Sep 22 08:56:23 CEST 2007
Hi!
Benjamin Mack wrote:
> I am working on a webpage where I have two TV containers for "Content
> Elements" and I'd like to have different settings for the different
> containers.
>
> Say I place a Content element with an image in container #1, I'd like to
> be able to have a maximum with of 600 pixel (like the main content
> container) and for container #2, I'd like a maximum width for pictures
> of 200 pixels (like a sidebar on the right).
>
> Note that I'm not talking about special FCE's or Templates where I
> specifically set one single image for a sidebar or so, but two content
> areas with random content elements, and about something where I could
> e.g. set styles.content.imgtext.maxW for different content areas...
> would be cool!
>
> Can anybody help me with this? Is this even possible?
For example, you can provide two radio buttons in FCE which will not be mapped but user can select if he wants small or large image size. Use "if" to generate corresponding size in image field.
--
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
More information about the TYPO3-project-templavoila
mailing list