Tue Aug 23 22:22:58 2005

Ticket #1414 (Closed: fixed)

Refresh templates every time they are display


Priority: normal Reporter: paul
Severity: minor Assigned to: mugur
Component: Admin Interface Status: closed
Version: 2.3.0 Resolution: fixed
Milestone: 2.3.2 Keywords:  

Description by paul:

Templates need to be kept synchronized with those on disk. If you copy new templates to the /look directory, they will not show up in "Issue Edit" or "Section Edit" until you go to the "Templates" screen. Going to the templates screen "refreshes" the list of templates, and from that point forward you will get the new list.

The quick fix for this is to change Template::GetAllTemplates() so that it does the refresh every time it is called.

Changelog

Wed Aug 24 02:37:58 2005: Modified by john

    I've noticed this one as well. It's very natural to try to edit the templates from outside the admin interface, taking advantage of preferred editing tools etc, so I think it would be great if campsite could support this. I don't know how 'costly' checking for changes in the templates directory is; perhaps it could be done just when a template is not found, or something? Maybe the 'GetAllTemplates()' call be be run if the user has a Campsite admin cookie?

    Tue Sep 27 11:40:37 2005: Modified by mugur

    • milestone changed from 2.4.0 to 2.3.2
    • status changed from new to assigned
    • owner changed from anonymous to mugur

    Tue Sep 27 11:41:59 2005: Modified by mugur

    • resolution set to fixed
    • status changed from assigned to closed