Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isotope DcaManager should consider custom pallettes #1061

Closed
tsarma opened this issue Apr 11, 2014 · 2 comments
Closed

Isotope DcaManager should consider custom pallettes #1061

tsarma opened this issue Apr 11, 2014 · 2 comments

Comments

@tsarma
Copy link
Contributor

tsarma commented Apr 11, 2014

Isotope product dca is generated inside buildPaletteString() function. However it do not consider tl_iso_products pallettes from custom modules. Therefore one cannot add custom fields to tl_iso_products.
for e.g. following does not work

$GLOBALS['TL_DCA']['tl_iso_product']['palettes']['default'] = str_replace('type', 'type,myField', $GLOBALS['TL_DCA']['tl_iso_product']['palettes']['default']);

I think you need to array_merge fields from $GLOBALS['TL_DCA']['tl_iso_product']['palettes'] and $arrEnabled inside function buildPaletteString();

@aschempp
Copy link
Member

Palettes for Isotope products are defined in the product type. You can enable your custom fields there.

@tsarma
Copy link
Contributor Author

tsarma commented Apr 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants