jce icon indicating copy to clipboard operation
jce copied to clipboard

Support child templates (Joomla 4.2)

Open rodlie opened this issue 2 years ago • 2 comments

Describe the bug

JCE searches for and use SITE/media/templates/site/TEMPLATE/css/template.css, but with Joomla 4.2 if you use a child template the file template.cssdoes not exists.

This means that the Stylesoption in the editor is empty, and possible other issues.

Please detect if the site is using a child template and include template.css from the parent template (and possible user.cssfrom child template).

Thanks (unsure if you want bug report here or on your forum, I use the pro version).

rodlie avatar Feb 13 '23 10:02 rodlie

I've added limited support for this, as not all template frameworks appear to support child templates, or use compiled css files to add the parent stylesheets (Astroid Framework)

See - https://github.com/widgetfactory/jce/commit/682d09ab8f506a5bc4149da5a449d2c4797f8154

This will be included in the next update, and in JCE Pro 2.9.34 Beta 8+ for testing - https://www.joomlacontenteditor.net/downloads/editor/pro/development

ryandemmer avatar Feb 13 '23 11:02 ryandemmer

Great, will test. For reference I use cassiopeia as the parent template.

rodlie avatar Feb 13 '23 11:02 rodlie