1.é·ããã£ãã·ã¥ã®çæã
確ãã«å€ãã®äººã ã¯ãMODXãã£ãã·ã¥ãæŽæ°ãããšããã¹ãŠã®ããã¥ã¡ã³ãã調ã¹ããªãœãŒã¹ããããã³ã³ããã¹ããã£ãã·ã¥ã«è©°ã蟌ãããšãç¥ã£ãŠããŸãã 誰ããç¥ããªãå Žåãç§ã¯ããã«ã€ããŠããã«è©³ããæžããã ãŸããããŒãžã§ã³2.2.7ïŒãŸãã¯ãã®é åïŒä»¥éã®MODXã§ã¯ãèšå®ïŒ cache_alias_mapã·ã¹ãã èšå®ïŒã§ãªãœãŒã¹ããããã£ãã·ã¥ãç¡å¹ã«ããããšãã§ããŸããããã®åé¡ã¯éšåçã«ãã解決ããŸãã-MODXã¯ããã¥ã¡ã³ãURLããã£ãã·ã¥ããŸããããIDæ§é ã«ã¯é¢ä¿ãããŸãããããŒã¿ããŒã¹ãããã¹ãŠã®ããã¥ã¡ã³ãããœãŒãããŸãã ããã«ããã第äžã«ãã³ã³ããã¹ããã£ãã·ã¥ãã¡ã€ã«ã倧ãããªãã第äºã«ãã¹ã¯ãªããã30ç§ã§å®è¡ã«å€±æãããã£ãã·ã¥ãã¡ã€ã«ãç Žæããå¯èœæ§ããããèŽåœçãªãšã©ãŒãçºçãããµã€ããåäœäžèœã«ãªãå¯èœæ§ããããŸãã
ãã ãããµãŒããŒããã¹ãŠã®ããã¥ã¡ã³ãããã«ãããã£ãã·ã¥å ã®ãã¹ãŠãåããããšãã§ããå Žåã§ããç°ãªãèšå®ãæã€1ã€ã®ãªã¯ãšã¹ãã®æ¯èŒæ°å€ãèŠãŠã¿ãŸãããã å€ãã®å ŽåããµãŒããŒã®èšå®ãšç°ãªããµãŒããŒã«ãã£ãŠåããµã€ãã®ã¡ã¢ãªæ¶è²»éãç°ãªãããããããã®æ°å€ã¯éåžžã«çžå¯Ÿçãªãã®ã«ãªããŸãããæ¯èŒãããšããããã®æ°å€ããç¶æ ã®éããããããŸãã ã¡ã¢ãªæ¶è²»éãæšå®ããããã«ãgetdataããã»ããµãŒãåŒã³åºããŠ10åã®èšäºãåãåããŸãã
ãã®ããã ãªãã·ã§ã³1ïŒãªãœãŒã¹ãããã®å®å šãªãã£ãã·ã¥ãæå¹ã«ãªããŸãã
ã³ã³ããã¹ããã£ãã·ã¥ãã¡ã€ã«ã®ãµã€ãºïŒ5,792,604ãã€ãã
èŠæ±ã«å¿ããã¡ã¢ãªæ¶è²»ïŒ28.25 Mb
æéïŒ0.06-0.1ç§
ãªãã·ã§ã³2ïŒãªãœãŒã¹ãããã®ãã«ãã£ãã·ã¥ã¯ç¡å¹ã§ãïŒã·ã¹ãã èšå®cache_alias_map == falseïŒã
ã³ã³ããã¹ããã£ãã·ã¥ãã¡ã€ã«ã®ãµã€ãºïŒ1,684,342ãã€ãã
èŠæ±ã¡ã¢ãªæ¶è²»éïŒ15.5 Mb
æéïŒ0.03-0.06ç§
ãªãã·ã§ã³3ïŒ cacheOptimizerãããã䜿çšãããªãœãŒã¹ãããã®ãã£ãã·ã¥ãå®å šã«ç¡å¹ã«ããŸãã
ã³ã³ããã¹ããã£ãã·ã¥ãã¡ã€ã«ã®ãµã€ãºïŒ54,945ãã€ãã
èŠæ±ã¡ã¢ãªæ¶è²»éïŒ4.5 Mb
æéïŒ0.02-0.03ç§
ãããŠãããã¯ãã£ã75,000ã®ãªãœãŒã¹ã§ãã æ°åäžäººã§ã¯ãéãã¯ããé¡èã«ãªããŸãã
ããã«ã¯ç¢ºãã«æ¬ ç¹ããããŸãã ããšãã°ãWayfinderã¯æ©èœããããšã€ãªã¢ã¹ãããããŒã¿ã«åºã¥ããŠã¡ãã¥ãŒãäœæãããŸãã ããã§ã¯ãã¡ãã¥ãŒèªäœãåéããå¿ èŠããããŸãã ã»ãšãã©ã®å Žåã ããã§æžããã¡ãã¥ãŒããã»ããµã䜿çšããŸãïŒã»ã¯ã·ã§ã³2.ãŠã§ã€ãã¡ã€ã³ããŒã®äº€æãåç § ïŒã
2.ããã¥ã¡ã³ãã®TVãã©ã¡ãŒã¿ã«ããããã©ãŒãã³ã¹ã®äœäžã
ããããããããã®ãããã¯ãæžãäž»ã§æãèå³æ·±ãçç±ã§ãã ããããã
ãããããããã«ã¯æ·±å»ãªãã€ãã¹ããããŸã-ãããã¯ãã¹ãŠ1ã€ã®ããŒãã«ã«æ ŒçŽãããŸãã ããã«ãããããã€ãã®åé¡ãäžåºŠã«è¿œå ãããŸãã
1.ããŒã¿ããŒã¹ã¬ãã«ã§å€ã®äžææ§ãå¶åŸ¡ããããšã¯ã§ããŸããã
2. TVãã£ãŒã«ãããšã«ç°ãªãããŒã¿åã䜿çšããããšã¯ã§ããŸããã TVãã£ãŒã«ãã®ãã¹ãŠã®ããŒã¿ã¯ãããŒã¿ã¿ã€ãmediumtextã®åäžã®åå€ã«å«ãŸããŠããŸã ã ã€ãŸããããå€ãã®ããŒã¿ã䜿çšããããšã¯ã§ãããæ°å€ã¯å°æåã§æ ŒçŽããïŒäžŠã¹æ¿ãã䌎ãã¯ãšãªã®åœ¢æã«è¿œå ã®èŠä»¶ã課ãããŸãïŒãç°ãªãåã®ããŒã¿ãfeng shuiãšæ¯èŒãããã»ã«ã³ããªããŒãšããã«ããããã£ãšå€ãã®äžå¿«ãªããšãèµ·ãããŸãã
3.è€æ°ã®ããŒãã«ãããã§ãããããšãã®ããã©ãŒãã³ã¹ãäœäžããŸãã ããšãã°ã1ã€ã®ããã¥ã¡ã³ãã«ã¯è€æ°ã®TVãã£ãŒã«ããããããã®ãã¡å°ãªããšã2ã3åã®ãã£ãŒã«ãã¯ã»ãšãã©åžžã«å ¥åãããŠããŸãã ãªã¯ãšã¹ãã§ããŒã¿ãããã¥ã¡ã³ãããã£ãŒã«ããããã«åãåãããã§ãã ãã®ãªã¯ãšã¹ããçæããããã®2ã€ã®äž»ãªãªãã·ã§ã³ããããŸãã
1. TV shekããŒãã«ã«åå ããã ãã§ãã
$q = $modx->newQuery("modResource"); $alias = $q->getAlias(); $q->leftJoin("modTemplateVarResource", "tv", "tv.contentid = {$alias}.id"); $c->select(array( "tv.*", "{$alias}.*", ));
ããããæ·±å»ãªãã€ãã¹ããããŸããçµæã®ããŒãã«ã§ã¯ãC * TVãã¬ã³ãŒãæ°ãååŸããŸããCã¯site_contentã®ã¬ã³ãŒãæ°ãTVã¯åããã¥ã¡ã³ãã®site_tmplvar_contentvaluesããŒãã«ã®ã¬ã³ãŒãæ°ã§ãã ã€ãŸããããšãã°ãããã¥ã¡ã³ãã®ã¬ã³ãŒãã100åãããåããã¥ã¡ã³ãã«ãã¬ãã¬ã³ãŒãã3åããå ŽåïŒå¹³åïŒãåèšã§100 * 3 = 300åã®ã¬ã³ãŒããååŸããŸãã
ãã®ãããçµæãšããŠãããã¥ã¡ã³ãããšã«è€æ°ã®çµæã¬ã³ãŒãããã£ããããPHPã¬ãã«ã§ã¯ãåä¿¡ããããŒã¿ãè¿œå åŠçããŠäžæã®ããŒã¿ãçæããå¿ èŠããããŸãã ããã¯getdataããã»ããµã§ãè¡ãããŸã ã ãŸããè² è·ãå¢å ããå®è¡æéãé·ããªããŸãã
ãã®ãã¥ãŒã¹ããŒã¿ã«ã§ã¯ãããã¥ã¡ã³ãããšã«å¹³å3ã€ã®ã¡ã€ã³ãšã³ããªããããŸããã ãã®çµæãæ倧225,000ã®ãã¬ãé²ç»ã ã¯ãšãªã®æé©åãè¡ã£ãŠããæ¡ä»¶ä»ãã®å®è¡ã«ã¯1ã4ç§ããããéåžžã«æéãããããŸããã
2.åTVãã£ãŒã«ãã«åå¥ã«åå ããŸãã
ãµã³ãã«ãªã¯ãšã¹ãïŒ
$q = $modx->newQuery("modResource"); $alias = $q->getAlias(); $q->leftJoin("modTemplateVarResource", "tv1", "tv1.tmplvarid = 1 AND tv1.contentid = {$alias}.id"); $q->leftJoin("modTemplateVarResource", "tv2", "tv2.tmplvarid = 2 AND tv2.contentid = {$alias}.id"); // ......... $c->select(array( "tv1.value as tv1_value", "tv2.value as tv2_value", "{$alias}.*", ));
çµæã®ããŒãã«ã«ã¯ããã¥ã¡ã³ãã¬ã³ãŒããšåãæ°ã®ã¬ã³ãŒããããããããã®ãããªãªã¯ãšã¹ãã¯ããé«éã«åŠçãããŸãããã¬ã³ãŒãæ°ãæ°åäžããæ°åäžã«ãªããTV shekã®æ°ã10ãè¶ ãããšãè² è·ã¯å°ãããªããŸããïŒåTVã©ãã¯ã«ã¯ããã«ããŒãã«ã1ã€è¿œå ãããŠããŸãïŒã
ãã®å Žåã®æåã®ãªãã·ã§ã³ã¯ãTVå€ãsite_contentã·ã¹ãã ããŒãã«èªäœã«æ ŒçŽããããšã§ããã€ãŸããåå€ã¯ãã®ããŒãã«ã®åå¥ã®åã«æ ŒçŽãããŸãã
ããããããCRCã®ãããã¯ã«é¢ãã次ã®ã¬ãã¹ã³ã§ãããšèããŠããå Žåãããã¯å®å šã«çå®ã§ã¯ãããŸããã åŸæ¥ãå©çšå¯èœãªã¯ã©ã¹ãç¬èªã®ãã®ã§æ¡åŒµããå¿ èŠãªåãè¿œå ããïŒãŸãã¯ç¬èªã®ããŒãã«ãäœæããïŒããšãæããããŠããŸããã ãããããã®ãã¹ã¯æé©ã§ã¯ãããŸããã ããã§ã®äž»ãªåé¡ã¯ãäœããã®æ¹æ³ã§ã¯ã©ã¹ãæ¡åŒµããããšã§ãããèªåã§ã¯ã©ã¹ãå€æŽããªãããšã§ãã æ¡åŒµã¯ãæ¡åŒµå¯èœãªïŒæ¡åŒµå¯èœã§ã¯ãªãïŒã¯ã©ã¹ãšãã¯ã©ã¹ãæ¡åŒµããæ¡åŒµã¯ã©ã¹ã®ã¿ã«é¢ä¿ããŸãã çŽããããããèšãã®ã¯é£ããã 説æããŸãã åºæ¬ã¯ã©ã¹modResourceããããŸãã modDocumentãmodWebLinkãmodSimLinkãªã©ã®ã¯ã©ã¹ã¯ãããæ¡åŒµããŸãã ãããã¯ãã¹ãŠmodResourceããããããããç¶æ¿ããŸãã modResourceã¯ã©ã¹ãã¯ã©ã¹ã§æ¡åŒµãããšãã¯ã©ã¹ã«æ°ããåãè¿œå ãããŸãããã¯ã©ã¹ã¯æ¡åŒµãããªããããmodDocumentã¯ã©ã¹ã«ã¯å«ãŸããŸããã ãã¹ãŠã®æ¡åŒµmodResourceã¯ã©ã¹ã«æ°ããåã«é¢ããæ å ±ã衚瀺ããã«ã¯ããã®æ å ±ãmodResourceã¯ã©ã¹èªäœã«å«ãŸããŠããå¿ èŠããããŸãã ããããã·ã¹ãã ãã¡ã€ã«èªäœã«è§Šããã«ãããè¡ãæ¹æ³ã¯ïŒ..å®éã2幎以äžåã«ãã®ããšã«ã€ããŠéšåçã«æžããŸããïŒèšäºãããã«ç§»åããŸãã ïŒããä»ã§ã¯æŠéã¢ãŒãã§å®è£ ãããŠããŸãã ãããè¡ããŸãïŒ
1. extensionPackageãšããŠããŒããããæ°ããã³ã³ããŒãã³ããäœæããŸãïŒè©³çŽ°ã«ã€ããŠã¯ã ãã¡ããåç §ããŠãã ãã ïŒã
2. phpMyAdminãªã©ã䜿çšããŠãsite_contentããŒãã«ã«æ°ããåãäœæããŸãã
3. CMPGeneratorã䜿çšããŠãsite_contentããŒãã«ã®ããããå«ãåå¥ã®ããã±ãŒãžãçæããŸãã ãã®ãããã«ã¯ãæ°ããåãšããŒãã«ã®èª¬æããããŸãã
4.ã¡ã¿ããŒã¿.mysql.phpãã¡ã€ã«ã®ããã±ãŒãžã«ãåãšã€ã³ããã¯ã¹ã®ããŒã¿ãæžã蟌ã¿ãŸãïŒãã®ãããªãã¡ã€ã«ã®äŸã¯ãShopModxBoxã¢ã»ã³ããªã§ã確èªã§ããŸãïŒã
ããšãã°ãç§ã®ãã¡ã€ã«ã¯æ¬¡ã®ããã«ãªããŸã
<?php $custom_fields = array( "modResource" => array( "fields" => array( "article_type" => array( "defaultValue" => NULL, "metaData" => array ( 'dbtype' => 'tinyint', 'precision' => '3', 'attributes' => 'unsigned', 'phptype' => 'integer', 'null' => true, 'index' => 'index', ), ), "image" => array( "defaultValue" => NULL, "metaData" => array ( 'dbtype' => 'varchar', 'precision' => '512', 'phptype' => 'string', 'null' => false, ), ), ), "indexes" => array( 'article_type' => array ( 'alias' => 'article_type', 'primary' => false, 'unique' => false, 'type' => 'BTREE', 'columns' => array ( 'article_type' => array ( 'length' => '', 'collation' => 'A', 'null' => true, ), ), ), ), ), ); foreach($custom_fields as $class => $class_data){ foreach($class_data['fields'] as $field => $data){ $this->map[$class]['fields'][$field] = $data['defaultValue']; $this->map[$class]['fieldMeta'][$field] = $data['metaData']; } if(!empty($class_data['indexes'])){ foreach($class_data['indexes'] as $index => $data){ $this->map[$class]['indexes'][$index] = $data; } } }
泚ææ·±ãèªãã§ãã ããã 2ã€ã®åãš1ã€ã®ã€ã³ããã¯ã¹ã«é¢ããæ å ±ãsite_contentããŒãã«ã«è¿œå ããŸãã
åãæ¬åœã«è¿œå ãããããšã確èªããŸãããã ã³ã³ãœãŒã«ã§ãã®ã³ãŒããå®è¡ããŠã¿ãŸãããïŒ
$o = $modx->newObject('modDocument'); print_r($o->toArray());
ãã®çµæã衚瀺ãããŸãã
Array ( [id] => [type] => document [contentType] => text/html [pagetitle] => [longtitle] => // // [article_type] => [image] => )
ããã§ãã«ã¹ã¿ã ãã£ãŒã«ãã䜿çšããŠã·ã¹ãã ããŒãã«ãæäœã§ããŸãã ããšãã°ã次ã®ããã«æžãããšãã§ããŸãã
$resource = $modx->getObject('modResource', $id); $resource->article_type = $article_type; $resource->save();
ç§ãã¡ã®äŸ¡å€ã¯ããã®ããã¥ã¡ã³ãã®è¡šã«æžãããŠããŸãã
çŽç²ãªMODXã§ç¬èªã®åãšã€ã³ããã¯ã¹ãäœæããŸãã
ãã®ã¢ãããŒãã§ã¯ãããŒãã«ã«ã«ã¹ã¿ã ãã£ãŒã«ããšã€ã³ããã¯ã¹ããªãããããã®ãããªã«ã¹ã¿ã ãµã€ãããçŽç²ãªMODXã«ç§»è¡ããåé¡ãããããšã¯æããã§ãã ãããå®éã«ã¯ãããã¯ãŸã£ããåé¡ã§ã¯ãããŸããã å®éãããŒãã«ããããããçæãããšãã¯ã©ã¹ã®ãããèšè¿°ããããŒãã«ãåãããã³ã€ã³ããã¯ã¹ãäœæã§ããŸãã åãŸãã¯ã€ã³ããã¯ã¹ã®äœæã¯éåžžã«ç°¡åã§ãã
// $manager = $modx->getManager(); // $manager->addField($className, $fieldName); // $manager->addIndex($className, $fieldName);
ãã®å Žåãåå以å€ã®åãšã€ã³ããã¯ã¹ã®ããŒã¿ãæå®ããå¿ èŠã¯ãããŸããã XPDOã¯ãã®ããŒã¿ããããããååŸãã説æãããåãŸãã¯ã€ã³ããã¯ã¹ãäœæãããšãã«äœ¿çšããŸãã
ã³ã³ããŒãã³ããéåžžã®ã€ã³ã¹ããŒã«ããã±ãŒãžã«ã¢ã»ã³ãã«ããå Žåã¯ãã¹ã¯ãªãããçŽæ¥ç»é²ããŠãããã±ãŒãžãã€ã³ã¹ããŒã«ãããšãã«ã«ã¹ã¿ã åãšã€ã³ããã¯ã¹ãããŒãã«ã«ããã«äœæãããããã«ããããšãã§ããŸãã
ããã¥ã¡ã³ããç·šéãããšãã«ãTVãã£ãŒã«ãã§ã«ã¹ã¿ã ããŒã¿ãã¬ã³ããªã³ã°ããŸãã
äžã§è¿°ã¹ãããã«ãTVã·ã§ãã¯ã®äŸ¿å©ãã¯ãããŸããŸãªã³ã³ãããŒã«èŠçŽ ïŒããã¹ããã£ãŒã«ããããããããŠã³ãªã¹ãããã§ãã¯ããã¯ã¹ãã©ãžãªããã¯ã¹ãªã©ïŒãäœæãããããšã§ãã ããã«ããã€ãã£ããã©ãŒã ãšãã£ã¿ãŒã§ã¯ãç¹å®ã®TVãã£ãŒã«ãã«å¯Ÿããæš©å©ãåºå¥ã§ãããããæ¯æãããŠããªã人ã¯ãã©ã€ããŒããã£ãŒã«ãã衚瀺/ç·šéã§ããŸããã å®éãæ¬åœã«å¿ èŠãªå Žåã¯å¯èœã§ããããã©ã€ããŒããã£ãŒã«ãã¯çè·¡ã®ãªã人ã«ãšã£ãŠç®éãã§ã¯ãããŸããã ããããªããšããã®ããŒã¿ã管çããããã«ç¬èªã®ã€ã³ã¿ãŒãã§ã€ã¹ãèŠã€ãåºãå¿ èŠããããããã¯éåžžã«é¢åã§ãã ããã§ãããã®ãããªããŒã¿ã®ç·šéã«ã¯ãã€ãã£ããªãœãŒã¹ãšãã£ã¿ãŒã䜿çšããããšæããŸãã ããã«ã¯çæ³çãªã¡ã«ããºã ã¯ãããŸããããããŸãé©åã§ã¯ãªããªãã·ã§ã³ãäœæããŸããã ãã®æå³ã¯ããã©ã°ã€ã³ã¬ãã«ã§ããã¥ã¡ã³ãç·šéãã©ãŒã ãã¬ã³ããªã³ã°ãããšãã«TVãã£ãŒã«ãããã®ã«ã¹ã¿ã å€ã«çœ®ãæããããã¥ã¡ã³ããä¿åãããšãã«TVãã£ãã«ããŒã¿ãã€ã³ã¿ãŒã»ãããããã®ããŒã¿ãã«ã¹ã¿ã ãã£ãŒã«ãã«ä¿åããããšã§ãã æ®å¿µãªãããããã«ããããã«ãŠã§ããžããããšã¯ã§ããŸããïŒåã«APIã§èš±å¯ãããŠããªãããïŒããããã£ãŠãããã¥ã¡ã³ãããã»ããµã«éä¿¡ãããããŒã¿ã«åœ±é¿ãäžããããšã¯ã§ããŸãããããã¥ã¡ã³ããä¿åããåŸããã®ãã¬ãŒããèªåçã«ã¯ãªãŒãã³ã°ããŸãã 3ã€ã®ã€ãã³ãã§åäœãããã©ã°ã€ã³ã®äŸã次ã«ç€ºããŸãïŒ1. TVãã£ãŒã«ãã®çœ®æãšã«ã¹ã¿ã ããŒã¿ã䜿çšããããã¥ã¡ã³ãç·šéãã©ãŒã ã®ã¬ã³ããªã³ã°ã2ãããŒã¿ã®åä¿¡ãšä¿ååã®ããã¥ã¡ã³ããªããžã§ã¯ãã®å€æŽã3ãäžèŠãªããŒã¿ã®ã¯ãªãŒãã³ã°ïŒ
ã³ãŒãã衚瀺
<?php /* OnBeforeDocFormSave OnDocFormSave OnResourceTVFormRender */ switch($modx->event->name){ /* */ case 'OnResourceTVFormRender': $categories = & $scriptProperties['categories']; foreach($categories as $c_id => & $category){ foreach($category['tvs'] as & $tv){ /* */ if($tv->id == '1'){ if($document = $modx->getObject('modResource', $resource)){ $q = $modx->newQuery('modResourceTag'); $q->select(array( "GROUP_CONCAT(distinct tag_id) as tags", )); $q->where(array( "resource_id" => $document->id, )); $tags = $modx->getValue($q->prepare()); $value = str_replace(",", "||", $tags); $tv->value = $value; $tv->relativeValue = $value; $inputForm = $tv->renderInput($document, array('value'=> $tv->value)); $tv->set('formElement',$inputForm); } } /* */ else if($tv->id == 2){ if($document = $modx->getObject('modResource', $resource)){ $tv->value = $document->image; $tv->relativeValue = $document->image; $inputForm = $tv->renderInput($document, array('value'=> $tv->value)); $tv->set('formElement',$inputForm); } } /* */ else if($tv->id == 12){ if($document = $modx->getObject('modResource', $resource)){ $tv->value = $document->article_status; $tv->relativeValue = $document->article_status; $inputForm = $tv->renderInput($document, array('value'=> $tv->value)); $tv->set('formElement',$inputForm); } } } } break; // case 'OnBeforeDocFormSave': $resource = & $scriptProperties['resource']; /* . active = 0. active = 1. OnDocFormSave */ if(isset($resource->tv1)){ $tags = array(); foreach((array)$resource->Tags as $tag){ $tag->active = 0; $tags[$tag->tag_id] = $tag; } // $tags = array(); if(!empty($resource->tv1)){ foreach((array)$resource->tv1 as $tv_value){ if($tv_value){ if(!empty($tags[$tv_value])){ $tags[$tv_value]->active = 1; } else{ $tags[$tv_value] = $modx->newObject('modResourceTag', array( "tag_id" => $tv_value, )); } } } } $resource->Tags = $tags; $tags_ids = array(); foreach($resource->Tags as $tag){ if($tag->active){ $tags_ids[] = $tag->tag_id; } } $resource->tags = ($tags_ids ? implode(",", $tags_ids) : NULL); } /* */ if(isset($resource->tv2)){ $resource->image = $resource->tv2; } /* */ if(isset($resource->tv12)){ $resource->article_status = $resource->tv12; } break; /* */ case 'OnDocFormSave': $resource =& $scriptProperties['resource']; /* */ $modx->removeCollection('modResourceTag',array( 'active' => 0, 'resource_id' => $resource->id, )); /* TV-, TV-, */ $modx->removeCollection('modTemplateVarResource',array( 'tmplvarid:in' => array( 1, // 2, // 12, // ), 'contentid' => $resource->id, )); break; }
ãã®ãã©ã°ã€ã³ã®ãããã§ãã«ã¹ã¿ã ããŒã¿ã¯ããã¥ã¡ã³ãç·šéãã©ãŒã ã«ã¬ã³ããªã³ã°ãããä¿åæã«åŠçãããŸãã
ãŸãšã
è¿œå ãã£ãŒã«ãã®ããŒãã«å ã®225以äžã®ãšã³ããªã®ãã¡ã78åã®ã¿ãæ®ã£ãŠããŸãããã¡ããããã¹ãŠã®ãã¬ããã·ã¹ãã ããŒãã«ã«è¡šç€ºãããããã§ã¯ãªãïŒãã ããæ€çŽ¢ãšäžŠã¹æ¿ãã«äœ¿çšããããã¬ãã®ã¿ïŒãäžéšã®ããŒã¿ã¯ç¢ºãã«ãã¬ããã£ãŒã«ãã®ããŒãã«ã«ãããŸãããè² è·ããã«ãããããããããã¯å€§å¹ ã«æžå°ãããªã¯ãšã¹ãã¯ããç°¡åã«ãªããŸããã
UPDïŒ TVãã¬ã³ããªã³ã°ããã³åŠçããããã®ããæ±çšæ§ã®é«ããã©ã°ã€ã³ ã