user500665
user500665

Reputation: 1364

TYPO3 News Extension list image size/position

I am using the news extension in TYPO3 6.2.14.

Two things:

1) How do I change the image size in the news list view? I need the images here to be 300px wide yet the settings only have the option for max width. Setting maxWidth to 300 gives me variable image widths between 150 and 200 at the moment.

2) I need the list view images to be above their headers. I have edited the List.html file but I don't know how to make the extension use my file instead of the default.

Upvotes: 1

Views: 1760

Answers (1)

András Ottó
András Ottó

Reputation: 7695

1) You can change the <f:image> in the Partials/FalMediaImage.html to use width and height. Here is the documentation. Or you can define the correct max width and a bigger max height and upload big images.

2) You can do it in TypoScript as it is in the documentation.

plugin.tx_news {
        view {
                templateRootPaths >
                templateRootPaths {
                        0 = EXT:news/Resources/Private/Templates/
                        1 = fileadmin/templates/ext/news/Templates/
                }
                partialRootPaths >
                partialRootPaths {
                        0 = EXT:news/Resources/Private/Partials/
                        1 = fileadmin/templates/ext/news/Partials/
                }
                layoutRootPaths >
                layoutRootPaths {
                        0 = EXT:news/Resources/Private/Layouts/
                        1 = fileadmin/templates/ext/news/Layouts/
                }
        }
}

Upvotes: 2

Related Questions