?
avatar thednp
thednp
14 Mar 2018

The current code doesn't allow the user to push colors or stuff like typographic measurements into the LESS compiler process, you pretty much have to use Bootstrap 2, with its default colors, so I want the user to be able to override this file within(/or only within) my template, with 2 major changes:

  • ability to push LESS variables values via PHP
  • ability to compile the LESS on template settings save

Thanks

avatar thednp thednp - open - 14 Mar 2018
avatar joomla-cms-bot joomla-cms-bot - change - 14 Mar 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Mar 2018
avatar thednp thednp - change - 14 Mar 2018
The description was changed
avatar thednp thednp - edited - 14 Mar 2018
avatar mbabker
mbabker - comment - 14 Mar 2018

generatecss.php doesn't ship as part of a release, it's only a convenience tool used when contributing to core and making LESS changes to the core templates to quickly regenerate the CSS for the templates. So it is not a reliable resource to use in distributed extensions/templates (and obviously not used in the template manager when LESS is compiled from there).

No, there are not hook points in the LESS compiling process to push values into the compiled CSS via PHP in any other way.

avatar thednp
thednp - comment - 14 Mar 2018

Thank you, but at least a hook point for template settings save?

avatar mbabker
mbabker - comment - 14 Mar 2018

Saving template styles emits the usual onContentBeforeSave and onContentAfterSave events in the com_templates.style context.

avatar thednp
thednp - comment - 14 Mar 2018

Thank you.

avatar thednp thednp - change - 14 Mar 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-03-14 13:12:47
Closed_By thednp
avatar thednp thednp - close - 14 Mar 2018

Add a Comment

Login with GitHub to post a comment