Hallo zusammen... ich wünsche einen schönen Sonntag... in einem custom Indexer für ke_search befinde ich mich innerhalb der indexierung einer einzelnen news (klappt soweit auch ansonsten bestens) nun möchte ich die tags der ext:news auch als tags für ke_search benutzen, mein Code sieht folgendermaßen aus : (aber es werden die tags nicht übernommen - ohne fehlermeldung) [um Namensprobleme zu vermeiden habe ich das übliche $res und $resCount hier $tres und $tresCount genannt] sieht irgendjemand meinen Denkfehler im Code ???
$newsid = $record['uid']; if($record['fe_group']==0) { $tags = 'FREE'; $contentType = 'freenews'; } else { $tags = 'PREMIUM'; $contentType = 'premiumnews'; }; $tres = $GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('tx_news_domain_model_news.uid,tx_news_domain_model_tag.uid,tx_news_domain_model_news_tag_mm.uid_local,tx_news_domain_model_news_tag_mm.uid_foreign,tx_news_domain_model_tag.title AS tx_news_domain_model_tag_title', 'tx_news_domain_model_news', 'tx_news_domain_model_news_tag_mm', 'tx_news_domain_model_tag', $whereClause='tx_news_domain_model_news.uid=tx_news_domain_model_news_tag_mm.uid_local AND tx_news_domain_model_tag.uid=tx_news_domain_model_news_tag_mm.uid_foreign AND tx_news_domain_model_news_tag_mm.uid_local=' . $newsid, $groupBy='', $orderBy='', $limit='' ); $tresCount = $GLOBALS['TYPO3_DB']->sql_num_rows($tres); if($tresCount) { while ( ($trecord = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($tres)) ) { $newstags .= ',' . $trecord['tx_news_domain_model_tag_title']; } return $newstags; }; $tags .= $newstags; -- image[FORMAT] - Ralf-René Schröder http://image-format.eu ... Wir geben Ihrem Image das richtige Format http://if-20.com ... YAML templates for TYPO3 _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german