How can i send more than 1 parameter from template to this function?
class ProductPage_Image extends Image {
function generateThumbnail(GD $gd, $width, $heigth) {
$gd->setQuality(90);
return $gd->paddedResize($width,$heigth,"F0F0F0");
}
public function Thumbnail($width,$heigth)
{
return $this->getFormattedImage('Thumbnail',$width, $heigth);
}
}
i try:
<ul id="ListaProductos">
<% control Children %>
<li>
<div class="Productonombre"><a href="$Link">$Title</a></div>
<div class="Productofoto">$Foto.Thumbnail(80,70)</div>
<div class="Productodescripcion"><p>$Content.FirstSentence</p></div>
</li>
<% end_control %>
But dint work, i get 1 parameter missing for Thumbnail function.
Thanks