Tag Archives: typo3

typo3: different max width for images in different columns

The problem:

We usually have several content regions populated in the TS-Template like this:


subparts.main_content < styles.content.get subparts.main_content.select.where = colPos = 1 subparts.second_content < styles.content.get subparts.second_content.select.where = colPos = 2

etc...

You can define a global maxW for images, but often this needs to be specific for every content region.

And this is how it should be done:

instead of:


subparts.right_content < styles.content.get subparts.right_content.select.where = colPos = 2 subparts.right_content.slide = -1

you must use:


subparts.right_content = COA
subparts.right_content{
5 = LOAD_REGISTER
5.maxImageWidth = 320
10= COA
10 < styles.content.get 10.select.where = colPos = 2 10.slide =-1 15 = RESTORE_REGISTER }