Last active
October 11, 2018 08:40
-
-
Save muks999/690f007edbdaa19c95f091f5118f1d91 to your computer and use it in GitHub Desktop.
Массовая смена шаблона в MODxREVO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$resources = $modx->getCollection('modResource',array('parent' => 19)); //берем ресурсы из категории "19" | |
foreach ($resources as $res) { | |
$res->set('template', 3); //устанавливаем им шаблон "3" | |
$res->save(); //сохраняем... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
так же можно использовать дополнение Batcher!!!!!!!!