[TYPO3-commerce] How to change default image sizes?

Michiel Roos michiel at netcreators.com
Tue Oct 23 14:00:25 CEST 2007


Paul Hansen wrote:
> 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
>     }
> }

Hi Paul,

I tried the following in the setup field of an extension template:

# set default image widths
lib.tx_commerce {
	products {
		fields.images {
			file.maxW = 111
			file.maxH = 200
		}
		fields.teaserimages.file.maxW = 111
	}

}

plugin.tx_commerce_pi1 {
	listView {
		categories =< lib.tx_commerce.categories
		products =< lib.tx_commerce.products
		articles =< lib.tx_commerce.articles
		topproducts =< lib.tx_commerce.topproducts
		products.nostock =< lib.tx_commerce.products
		articles.nostock =< lib.tx_commerce.articles
	}
}

Kind regards,


Michiel Roos

-- 
Netcreators BV :: creation and innovation
www.netcreators.com

Interesse in werken bij Netcreators?
http://www.netcreators.com/bedrijf/vacatures/


More information about the TYPO3-project-commerce mailing list