contao/issues — Issue #554: Hook addToTemplateStyle (for Class ContentElement)
Author: importer
Created: 2011-11-24 13:01:40+00:00
State: open
Labels: Feature, frontend

It's a little restricting that the style output is more or less hardcoded in class ContentElement. If we had such a hook, it would be easy to provide an extension to solve e.g. [this problem](http://www.contao.org/board/topic/10447.html) (extend the DCA of all CE's where it makes sense with "Add Background Image". But there's no possibility to get this loaded into the style string without duplicating class ContentElement, right?). It should probably provide the CE ID as argument and expect an array as return.

--- _Originally created by Antipitch on February 28th, 2009, at 11:33pm (ID 554)_