title-attribut for article images

View: New views
3 Messages — Rating Filter:   Alert me  

title-attribut for article images

by Arno Pfeuffer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
TYPO3-project-commerce mailing list
TYPO3-project-commerce@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce

Abwesenheitsnotiz

by Nicolas Wendisch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dieses ist eine Urlaubsnachricht. In der Zeit vom 24.07. bis
21.07. ist Nicolas Wendisch nicht erreichbar.
Ihre e-Mail wurde NICHT weitergeleitet. Bitte wenden Sie sich
für eilige Anfragen an meine Kollegen unter
kundendienst@... oder 0441 36116-780.

_______________________________________________
TYPO3-project-commerce mailing list
TYPO3-project-commerce@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce

Re: title-attribut for article images

by Arno Pfeuffer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
TYPO3-project-commerce mailing list
TYPO3-project-commerce@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce