[Typo3-shop] Image problems in single view
media.res | alex widschwendter
a.widschwendter at mediares.at
Sat Jan 8 15:48:19 CET 2005
hi,
> I can only find one field to add images for a product.
>
>
>
> The way I upload images for products is:
>
> - create new record
>
> - selects 'products'
>
> - in the 'edit form' I select the field 'image' (just below the RTE
> note panel)
>
> - in the 'image' field I add all 3 images
>
>
>
> Is there another way to do this - can I get another image field?
you can add other image fields in the tca.php of this extension... you
surley find this out on investigating a little bit.
with one field change the code:
$theImgCode="";
$imgs = explode(",",$row["image"]);
$val = $imgs[0];
if ($val) {
$this->conf[$imageRenderObj."."]["file"] = "uploads/pics/".$val;
} else {
$this->conf[$imageRenderObj."."]["file"] = $this->conf["noImageAvailable"];
}
$theImgCode.=$this->cObj->IMAGE($this->conf[$imageRenderObj."."]);
-------
for image 2
$theImgCode2="";
$val = $imgs[1];
if ($val) {
$this->conf[$imageRenderObj."."]["file"] = "uploads/pics/".$val;
} else {
$this->conf[$imageRenderObj."."]["file"] = $this->conf["noImageAvailable"];
}
$theImgCode2.=$this->cObj->IMAGE($this->conf[$imageRenderObj."."]);
and so on....
hth alex
More information about the TYPO3-project-tt-products
mailing list