Ticket #1766 (new enhancement)

Opened 10 months ago

Last modified 9 months ago

template autodiscovery

Reported by: demian Assigned to: jcasanova
Priority: normal Milestone: 1.1
Component: themes - default Severity: open
Keywords: Cc:

Description (Last modified by demian)

[Laszlo's idea]

I thought about making template name autodicsovery through standardization of template naming. The idea would be to name them as <managername>/admin/<actionname>.html and <managername>/ <actionname>.html. It could be implemented as fallback method if template is not found (or if enabled in config file). The rules would help on many levels (modules with lot of templates). file_exists php function caches its calls, so it doesnt really hurts performance. I believe that everybody uses some kind of naming convention for templates, we could make a common one. Interested about your thoughts.

Change History

01/03/13 11:51:56 changed by demian

  • summary changed from template autodiscover to template autodiscovery.

02/26/13 12:44:45 changed by demian

  • priority changed from normal to high.
  • description changed.

02/26/13 13:24:58 changed by demian

  • priority changed from high to normal.