[TYPO3-dev] tt_news category mounts

J. Lingott jbl at deweblop.de
Fri Aug 27 11:46:50 CEST 2010


  Hello,

can anyone prove that it is not possible to set the mount to just one 
root category (should be same for some, as long its not all). This was 
just possible when changing the source code on 
class.tx_ttnews_TCAform_selectTree.php (~ln 660).

             $cMounts = array();
             $nonRootMounts = FALSE;
             foreach ($beUserSelCatArr as $catID) {
                 $tmpR = 
t3lib_BEfunc::getRecord('tt_news_cat',$catID,'parent_category,hidden',$addWhere);
                 if (is_array($tmpR) && !in_array($catID,$subcatArr)) {
                     if ($tmpR['parent_category'] > 0) {
                         $nonRootMounts = TRUE;
                         if (!$calledFromAjax) {
                             $sPageIcon = 
$this->getStoragePageIcon($treeViewObj);
                         }
                     }
                     $cMounts[] = $catID;
 >>>             } else $nonRootMounts = TRUE;
             }
             if ($nonRootMounts) {
                 $treeViewObj->MOUNTS = $cMounts;
             }






More information about the TYPO3-dev mailing list