[TYPO3-commerce] fields configuration and stdWrap
Franz Koch
typo.removeformessage at fx-graefix.de
Mon Sep 24 15:23:15 CEST 2007
Hi Thomas,
> Is the stdWrap functionality in commerce still buggy or am I just too
> blind/stupid?
>
> If I try to wrap certain fields some don't output the wrap:
>
> plugin.tx_commerce_pi1 {
> singleView {
> articles {
> fields {
> title = stdWrap
> title.wrap = ANYWRAP|ANYWRAP
> subtitle = stdWrap
> subtitle.wrap = ANYWRAP|ANYWRAP
> eancode = stdWrap
> eancode.wrap = ANYWRAP|ANYWRAP
> ordernumber = stdWrap
> ordernumber.wrap = ANYWRAP|ANYWRAP
> }
> }
> }
> }
>
> The wraps for title and eancode work while those for subtitle and
> ordernumber don't.
This is a bug. The stdWrap itself applies, but the ordernumber get's
overwritten by a blank db value just before parsing the template.
> Another problem I've run into is using IMAGE instead of stdWrap.
> According to the comments in the source code it should be possible to
> use IMAGE, IMGTEXT and GIFBUILDER.
>
> So I would think that something like this should work:
>
> plugin.tx_commerce_pi1 {
> singleView {
> articles {
> fields {
> title = IMAGE
> title.file = myimage.gif
> }
> }
> }
> }
>
> But I don't get any output.
What does the TS debug output of the adminpanel say? Note that you have
to also include the path to the image.
--
Kind regards,
Franz
More information about the TYPO3-project-commerce
mailing list