almfisch / contao-chiemTools

Some small tools that make life easier... ;-)
0 stars 0 forks source link

css Klasse is not working with news archives #1

Open zodit opened 9 years ago

zodit commented 9 years ago

Contao version: 3.3.6 ChiemTools version: 1.0.0-beta2 In root page of my site structure i have some custom css classes, comma separated, in the fields chiemToolsClassA and chiemToolsClassC.

Test1: making a "text element" and a "gallery element" inside any Article, the module is working as expected.

Test2: making the same elements inside a News Archive, the module is not working. The CSS class is back to the Contao default and i need to write it manually.

zodit commented 9 years ago

I notice an error in the Contao log, but it is of some days ago, today there is nothing. Anyway I don't know how to fix it:

PHP Recoverable error: Argument 1 passed to tl_content_chiemTools::chiemToolsClassSel() must be an instance of Contao\DataContainer, instance of tl_content given, called in /usr/local/psa/home/vhosts/manet/httpdocs/system/modules/core/dca/tl_content.php on line 1694 and defined in /usr/local/psa/home/vhosts/manet/httpdocs/system/modules/chiemTools/dca/tl_content.php on line 24

0 /usr/local/psa/home/vhosts/manet/httpdocs/system/modules/chiemTools/dca/tl_content.php(24): __error(4096, 'Argument 1 pass...', '/usr/local/psa/...', 24, Array)