I get the following message when I build the Doodle component:
Console running...
Attempting to install package with signature: doodles-1.0-beta1
Package found...now preparing to install.
Grabbing package workspace...
Workspace environment initiated, now installing package...
Attempting to preserve files at E:\www\modx200rc1/core/components/doodles into archive E:/www/modx200rc1/core/packages/doodles-1.0-beta1/modCategory/468c03c5bfc68545d309fd72c88d8f31.1.preserved.zip
Language string not found: "doodles"
Language string not found: "doodles.desc"
Created table`revo_doodles` SQL: CREATE TABLE `revo_doodles` (`id` INTEGER unsigned NOT NULL AUTO_INCREMENT,`name` VARCHAR(255) NOT NULL DEFAULT ’’,`description` TEXT NOT NULL,`location` TEXT NOT NULL,`downloads` INT(10) unsigned NOT NULL DEFAULT ’0’,`createdon` DATETIME NULL,`createdby` INT(10) unsigned NOT NULL DEFAULT ’0’,`editedon` DATETIME NULL,`editedby` INT(10) unsigned NOT NULL DEFAULT ’0’, PRIMARY KEY (`id`)) TYPE=MyISAM
Successfully installed package doodles-1.0-beta1
Two language string seems to be missing
Otherwise as soon Doodles are added thru the module, they could be displayed thru the snippet.
My question is regarding these few lines of the snippet that I don’t understand:
$dood = $modx->getService('doodles','Doodles',$modx->getOption('doodles.core_path',null,$modx->getOption('core_path').'components/doodles/').'model/doodles/',$scriptProperties);
if (!($dood instanceof Doodles)) return '';
/* setup default properties */
$tpl = $modx->getOption('tpl',$scriptProperties,'rowTpl');
$sort = $modx->getOption('sort',$scriptProperties,'name');
$dir = $modx->getOption('dir',$scriptProperties,'ASC');
I have read the documentation regarding MODx services and getServices, but I don’t understand where (in which file) are defined the ’tpl’,’sort’ and ’dir’ options. Apologies because may be it’s obvious but ...