[TYPO3-commerce] any changes about PRODUCT_RELATEDPAGE between 12.1 and 12.2 ?
Erik Sokoll
erik at t3media.de
Wed Mar 24 15:32:57 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
To give an answer to my own posting this will work.
Not nice, cause it's not done by typolink, but anyhow it produces the
same like before:
plugin.tx_commerce_pi1 {
listView.products.fields {
relatedpage = stdWrap
relatedpage {
setContentToCurrent = 1
if.isTrue.current = 1 # show link only if a related page is set
wrap = <div class="relatedpage"><a href="index.php?id=|">Weitere
Produktinformationen</a></div>
}
}
singleView.products.fields {
relatedpage = stdWrap
relatedpage {
setContentToCurrent = 1
if.isTrue.current = 1 # show link only if a related page is set
wrap = <div class="relatedpage"><a href="index.php?id=|">Weitere
Produktinformationen</a></div>
}
}
}
Again the versions:
TYPO3 version: 4.3.2
Commerce version: 0.12.2
Commerce template marker: ###PRODUCT_RELATEDPAGE###
Maybe it will help somebody.
Greetings...
Erik
Erik Sokoll schrieb:
> Dear list,
> in commerce version 12.1 the following code snipped returned a link to
> the relatedpage* as far as it was set.
>
> ------------- schnippel %< -------------
> plugin.tx_commerce_pi1.listView.products.fields.relatedpage = TEXT
> plugin.tx_commerce_pi1.listView.products.fields.relatedpage {
> setContentToCurrent = 1
> if.isTrue.current = 1
> wrap = <div class="relatedpage"><a href="index.php?id=|">Weitere
> Produktinformationen</a></div>
> }
> ...
> (the same for singleView)
> ...
> ------------- schnapp %< -------------
>
> Now in commerce version 12.2 only the number from the database field is
> returned and moreover it shows the default 0 (zero) as fas as no related
> page is defined.
>
>
> Well, I will search for a different way to render the information but I
> wonder why it doesn't work anymore.
>
>
> Greetings...
> Erik
>
>
> * The marker ###PRODUCT_RELATEDPAGE### is for links to 'normal' pages
> beside the shop system where you can insert additional information about
> the product on a normal page and has nothing to do with 'related products'.
>
_______________________________________________
TYPO3-project-commerce mailing list
TYPO3-project-commerce at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFLqiKZuogOZOO2WPQRAkD0AJoC7V7/4p6t7va8TGEM6XYId5t1PwCgzZ9g
oNi34HETFYFfS/5O+n07+ck=
=e403
-----END PGP SIGNATURE-----
More information about the TYPO3-project-commerce
mailing list