? ?
avatar venomdev
venomdev
9 Dec 2020

I have a designer and users who are familiar with the Twig template format and know little to no PHP so I include a few Twig templates in my extensions. I would like the designer or user to be able to use overrides on files that use an extension other than .php

In the com_templates component could we add another few types of extensions?

the line to change is com_templates/models/template.php#L787

I think some other extensions that might be helpful to include are:

  • .twig.html
  • .html.twig
  • .blade.html
  • .html.blade

Maybe we could add allowed extensions in the system configuration for com_templates under the Supported File Formats section.

avatar venomdev venomdev - open - 9 Dec 2020
avatar joomla-cms-bot joomla-cms-bot - change - 9 Dec 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Dec 2020
avatar venomdev venomdev - change - 9 Dec 2020
The description was changed
avatar venomdev venomdev - edited - 9 Dec 2020
avatar chmst chmst - change - 10 Dec 2020
Labels Added: ?
avatar chmst chmst - labeled - 10 Dec 2020
avatar rdeutz rdeutz - change - 18 Dec 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-12-18 09:51:25
Closed_By rdeutz
avatar rdeutz rdeutz - close - 18 Dec 2020

Add a Comment

Login with GitHub to post a comment