widgetfactory / jce

JCE - A Content Editor for Joomla
https://www.joomlacontenteditor.net
GNU General Public License v2.0
35 stars 12 forks source link

Support child templates (Joomla 4.2) #116

Open rodlie opened 1 year ago

rodlie commented 1 year ago

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).

ryandemmer commented 1 year ago

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

rodlie commented 1 year ago

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