Morgen,
mambots/content.searchbot.php vor Zeile
PHP-Code:
return array_merge( $list, $list2, $list3 );
ergänzen mit:
PHP-Code:
$query = "SELECT b.id FROM #__content AS b INNER JOIN #__menu"
. "\n AS m ON m.componentid = b.id WHERE m.published = 1 AND m.type = 'content_typed'";
$database->setQuery($query);
$tempresult = $database->loadResultArray();
// search static content
$query = "SELECT a.title AS title, a.created AS created, a.introtext AS text,"
. "\n CONCAT( 'index.php?option=com_content&task=view&id=', a.id) AS href,"
. "\n '2' as browsernav, '" . _E_CONTENT ."' AS section"
. "\n FROM #__content AS a"
. "\n WHERE a.id NOT IN (". implode(',', $tempresult) .")"
. "\n AND a.state = 1"
. "\n AND a.sectionid = 0"
. "\n AND a.catid = 0"
. "\n AND a.access <= $my->gid" /* if jaclplus, you have to comment out*/
//. "\n AND a.access IN ( $my->jaclplus )" /* for jaclplus*/
. "\n AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '$now' )"
. "\n AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '$now' )"
. "\n AND ($where)"
. "\n ORDER BY ". ($morder ? $morder : $order)
;
$database->setQuery( $query, 0, $limit );
$list3 = $database->loadObjectList();
Gruß
ec
Lesezeichen