[TYPO3-commerce] title-attribut for article images

Arno Pfeuffer arno.pfeuffer at gmx.net
Thu Jul 24 22:14:53 CEST 2008


Arno Pfeuffer schrieb:
> Hi,
> 
> I use the following TS-code for click enlarge the article images with 
> the pmkSlimbox and it works fine, with one problem (see: <- The Problem):
> 
> plugin.tx_commerce_pi1 {
>   singleView.articles.fields {
>     images {
>     imageLinkWrap = 1
>     imageLinkWrap {
>       enable = 1
>       typolink {
>       parameter.cObject = IMG_RESOURCE
>       parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
>       parameter.cObject.file.maxW = 800m
>       parameter.cObject.file.maxH = 600
>       ATagParams = rel="lightbox"
>       ATagParams.override = rel="lightbox[sb{field:uid}]"
>       ATagParams.override.if.isTrue = 
> {$plugin.pmkslimbox.imgtext.navigable}
>       ATagParams.insertData = 1
>       target = _blank
> 
>       title = ??? <- The Problem
>       }
>     }
>    }
>  }
> }
> 
> Over the title-attribute the pmk slimbox-text is transported. And here 
> is my problem.
> I want to display the title of any article. With "title.field = title" 
> it will not work. So what I have to do? Can anyone help me?
> How is the code for displaying the article-title in the title-attribute 
> of the a-Tag? I have no idea.
> 
> Regards Arno

So, I find a solution:

title.cObject = RECORDS
title.cObject {
   source = {GPvar:tx_commerce_pi1|showUid}
   source.insertData = 1
   tables = tx_commerce_products
   conf.tx_commerce_products >
   conf.tx_commerce_products = COA
   conf.tx_commerce_products {
     10 = TEXT
     10.field = title
     10.noTrimWrap = || – |

     20 = TEXT
     20.field = subtitle
     20.wrap = |
   }
}

This works perfect for me.

And here was the base of my solution:
www.sk-typo3.de/Datensatz-auslesen.156.0.html
Thanks to sk-typo3


More information about the TYPO3-project-commerce mailing list