[TYPO3-commerce] How to change default image sizes?
Paul Hansen
paul at ecopixel.com
Sat Oct 20 23:22:07 CEST 2007
Marcel Burkhalter wrote:
>> plugin.tx_commerce_pi1 {
>> # ...stuff
>>
>> singleView {
>> products {
>> fields {
>> images.file.maxW = 255
>> images.file.maxH = 300
> <snip>
>
> I know I can change the sizes by overwriting then directly in the plugin
> setup
> code (plugin.tx_commerce_pi1, plugin.tx_commerce_pi2 etc.).
> But I thoght, the idea for default sizes is to change them via lib. settings
> because they are copied multiple times into the plugin settings.
> --> MUCH less TS code...
> This is shown in the wiki but it doesnt work (for me). So the question is,
> am I
> doing something wrong or is it a mistake in the wiki and does not work
> whatsoever.
Hi Marcel,
The default plugin setup in static/setup.txt is copying from
lib.tx_commerce rather than referencing it, so your own template's
lib.tx_commerce changes won't effect the plugin configuration--the
values are already set.
Perhaps it would work if static/setup.txt looked more like this:
plugin.tx_commerce_pi1 {
singleView {
products =< lib.tx_commerce.products
articles =< lib.tx_commerce.articles
products.nostock =< lib.tx_commerce.products
articles.nostock =< lib.tx_commerce.articles
attributes =< lib.tx_commerce.attributes
categories =< lib.tx_commerce.categories
}
}
Take care,
Paul
More information about the TYPO3-project-commerce
mailing list