CMS MADE SIMPLE FORGE

Template Externalizer

 

[#4017] externalizer_ImportTemplates is missing modules

avatar
Created By: Pierre-Luc Germain (plger)
Date Submitted: Tue Sep 08 12:57:25 -0400 2009

Assigned To:
Version: 1.2
CMSMS Version: None
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
externalizer_ImportTemplates is missing modules
Detailed Description:
All modules whose name are alphabetically posterior to this one won't get their
templates imported back into the database.

http://forum.cmsmadesimple.org/index.php/topic,37164.new.html

The cms loads its modules alphabetically, and the Template Externalizer imports
templates back into the database immediately when it is loaded and iterates the
modules through $gCms->modules (and as such doesn't see the modules which are
not yet loaded).

It should either:
1) run externalizer_ImportTemplates() later, through an event handler
2) query modules in the database instead of getting them through $gCms->modules

(other than that, this module is great)

[*edit: forgot to state the version]


History

Comments
avatar
Date: 2011-04-02 10:10
Posted By: Zdeno Kuzmany (xxl)

Fix (require CGExtensions)

Line 384

replace $modulenames = ..........

to

$query = 'SELECT module_name FROM ' . cms_db_prefix() . 'modules WHERE
admin_only = 0 and active=1  ORDER by module_name';
    $result = $db->GetAll($query);
    $modulenames = cge_array::to_hash($result, 'module_name');
      
avatar
Date: 2011-11-16 08:02
Posted By: Jocelyn Lusseau (kraygoon)

Old version, no support.
      
Updates

Updated: 2011-11-16 08:02
resolution_id: 5 => 7
cmsms_version_id: => -1
state: Open => Closed

Updated: 2009-09-08 12:58
description: All modules whose name are alphabetically posterior to this one won't get their templates imported back into the database. http://forum.cmsmadesimple.org/index.php/topic,37164.new.html The cms loads its modules alphabetically, and the Template Exter => All modules whose name are alphabetically posterior to this one won't get their templates imported back into the database. http://forum.cmsmadesimple.org/index.php/topic,37164.new.html The cms loads its modules alphabetically, and the Template Exter
version_id: -1 => 27709
resolution_id: => 5
severity_id: 12 => 3