Blog Sections Open
resourse.php: Faster Resource Creation for Large Imports
When DocManager becomes too slow for bulk imports, a lighter resource library can reduce document creation time dramatically.
This legacy donor introduced resourse.php as a faster alternative to DocManager for programmatic resource creation in Evolution CMS. The motivation was simple: importing hundreds of documents with multiple TVs could take more than 30 seconds with heavier tooling.
The idea
Instead of routing everything through the standard manager-oriented flow, the library provided a leaner API for creating and updating resources during imports.
Example
include_once(MODX_BASE_PATH . '/assets/lib/resourse/resourse.php');
$resourse = resourse::Instance();
$resourse->set('template', 20);
$resourse->set('published', 1);
$resourse->set('hidemenu', 0);
$resourse->set('pagetitle', $modx->db->escape($row[1]));
$resourse->set('parent', $row[2]);
$resourse->set('alias', $row[3]);
$resourse->set('price', $row[4]);
$resourse->set('articul', $row[5]);
$resourse->save();
$resourse->clear_chache();
Reported result
According to the note, a CSV import of 1,200 resources with six TV values finished in only a few seconds during testing. That made the library interesting for catalogs, migrations, and mass content generation workflows.
Why it matters
This is a good example of the old Evolution ecosystem experimenting with narrower tools around real bottlenecks. Even if you would solve the same problem differently today, the design goal remains valid: bulk import tooling should not behave like a slow manager form loop.
Source: original community announcement.
MODX Custom 1.0.10-d5.3RC: SeoStrictUrl in Core and Better Editor Tools
This custom Evolution build bundled a notably practical set of improvements: SeoStrictUrl integration, a better CodeMirror setup, sitemap work, editor polish, and a long list of small manager fixes.
TSVshop 5.1 Beta: What Changed and What Needed Testing
A release-style summary of the TSVshop 5.1 beta and the features that needed real project testing before a stable release.