[TYPO3-shop] Single_View Products IMAGEs

Tobias Hochgürtel tobias at thochguertel.de
Tue Mar 4 20:51:46 CET 2008


Hi Lukas, 

That's typoScript, but that is only for configuration?

I want to create an javascript Product_Image View, and so I want to create an 
JavaScript Array.

Like this (Javascript):

var urlList = [
                 "http://static.flickr.com/116/268249561_a32393f6ac_b.jpg",
                 "http://static.flickr.com/92/268244474_2f3393ee8c_b.jpg",
                 "http://static.flickr.com/105/268244323_e5f0fa4103_s.jpg"
                 ];

and so I want that the content of the ###PRODUCT_MARKER### fill into / around 
another Variable. 

This new Variable will create a Javascript Tag with the Images Listes like 
here, and then I will add this Javascript to the head of the HTML output of 
Typo3. But this is an other Part.

tobi



Am Dienstag 04 März 2008 20:46:07 schrieb Lukas Taferner:
> Hi Tobias,
>
> If I get you right you don't have to edit the source of tt_products but
> use cobjects(I use 2.7.0):
> Setup
> plugin.tt_products.conf.tt_products.ALL.image.m {
>   file.width = 80
>   file.maxH = 50
> }
>
> In your Template use ###PRODUCT_IMAGE:M###
> Have a look @ TSREF Section IMAGE for more info!
>
> greets,
>
> Lukas
>
> Tobias Hochgürtel wrote:
> > Hello World?!
> >
> > I want to patch or better said extend mt local copy of tt_products. I
> > have bought the Version 2.6.0 and upgrade my Shop successfully. okay
> > Great ;)
> >
> > But I'm not familiar with Typo3 and Developing I have read and write me
> > down some things. I have read the source Code of tt_products and now I
> > want to extend / edit the output of the product Image.
> >
> > When I have correct understand the source code of the file:
> >
> > typo3conf/ext/tt_products/view/class.tx_ttproducts_single_view.php
> >
> > then should the marker ###PRODUCT_IMAGE### create and filled in Line: 357
> >
> > 			$markerArray = array();
> > 			$itemTableArray[$this->type]->getItemMarkerArray (
> > 				$item,
> > 				$markerArray,
> > 				$catTitle,
> > 				$this->basket->basketExt,
> > 				$this->config['limitImageSingle'],
> > 				'image',
> > 				$viewTagArray,
> > 				$forminfoArray,
> > 				'SINGLE',
> > 				1,
> > 				'',
> > 				'',
> > 				true,
> > 				true
> > 			);
> >
> > and for the article Images
> >
> > 			if ($this->type == 'article')	{
> > ...
> >
> > in Line 597,
> >
> > $content =
> > $this->pibase->cObj->substituteMarkerArrayCached($itemFrameWork,
> > $markerArray,$subpartArray,$wrappedSubpartArray);
> >
> > will the Variable $content get all the Code of the SubParts / Markers..
> >
> > The function "getItemMarkerArray()" creates this Marker and fill it with
> > the Images and returns an array with the Images..
> >
> > No I don't know if I have understand all things right?
> > How can I know edit this Marker / the way of filling in the Images?
> > Wraping some content around Images / saving them in an other array? and
> > so I can work with the new array?
> >
> > Can somone help me a bit? I'm not a fully programmer yet, so Idon't know
> > if I have analyse the souce code right.
> >
> > best regards
> >
> > Tobias Hochgürtel
> >
> > _______________________________________________
> > TYPO3-project-tt-products mailing list
> > TYPO3-project-tt-products at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-pro
> >ducts
>
> _______________________________________________
> TYPO3-project-tt-products mailing list
> TYPO3-project-tt-products at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-produ
>cts




More information about the TYPO3-project-tt-products mailing list