blasto Posted April 15, 2011 Share Posted April 15, 2011 Bonjour,Je ne comprend pas bien.Je souhaite remplacer l'image de taille "medium" par l'image de taille "home" dans le module "blockspecial". Sur les anciennes versions cela fonctionnait très bien, il suffisait de remplacer le mot "medium" par "home" et là sur la 1.4, ce n'est pas le cas ainsi que pour la taille des images. Le fait de remplacer height="{$mediumSize.height}" width="{$mediumSize.width}", par height="{$homeSize.height}" width="{$homeSize.width}", cela me génère une erreur ...Comment puis-je faire sur la 1.4 svp ? Link to comment Share on other sites More sharing options...
Lobby_ Posted April 15, 2011 Share Posted April 15, 2011 A mon avis tu à juste oublier de changer un truc, il y a 3 champ à changer : $special.id_image, 'medium' $mediumSize.height $mediumSize.width Ce qui donne dans ton cas : getImageLink($special.link_rewrite, $special.id_image, 'home')}" alt="{$special.legend|escape:html:'UTF-8'}" height="{$homeSize.height}" width="{$homeSize.width}" title="{$special.name|escape:html:'UTF-8'}" /> Link to comment Share on other sites More sharing options...
blasto Posted April 15, 2011 Author Share Posted April 15, 2011 Si je remplace : getImageLink($special.link_rewrite, $special.id_image, 'medium')}" alt="{$special.legend|escape:html:'UTF-8'}" height="{$mediumSize.height}" width="{$mediumSize.width}" title="{$special.name|escape:html:'UTF-8'}" /> Par çà : getImageLink($special.link_rewrite, $special.id_image, 'home')}" alt="{$special.legend|escape:html:'UTF-8'}" height="{$homeSize.height}" width="{$homeSize.width}" title="{$special.name|escape:html:'UTF-8'}" /> Ca ne fonctionne pas (Gros message d'erreur) ... Link to comment Share on other sites More sharing options...
blasto Posted April 18, 2011 Author Share Posted April 18, 2011 J'ai trouvé, j'avais oublié de remplacer également : 'mediumSize' => Image::getSize('medium'))); Par 'homeSize' => Image::getSize('home'))); Dans Blockspecial.php Link to comment Share on other sites More sharing options...
val123 Posted June 20, 2012 Share Posted June 20, 2012 Bonjour Je cherche à faire la même déclaration ( 'monformat' => Image::getSize('monformat'))); mais pour la list-product.tpl Mais je ne vois pas de list-ptoduct.php ou dois-je la déclarer ? Merci d'avance pour vos réponses ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now