I have to believe this is planned, since search contentpart is getting better and better - I ran into a situation where I am deving an online site - which is not yet public and wanted to simply test search results and functionality. Apparently the {VISIBLE_MODE} switch statememt used in other parts of wcms is not included in
cnt13.article.inc.php as of yet, but found pasting the filter code inside the sql statement allows such filtering - basically non-public articles show up in search results if logged in as admin:
comment out around line 136:
Code: Select all
//$sql .= "article_public=1 AND article_aktiv=1 AND article_deleted=0 ";
and then add somthing like this:
Code: Select all
switch(VISIBLE_MODE) {
case 0: $sql .= "article_public=1 AND article_deleted=0 AND article_aktiv=1 AND ";
break;
case 1: $sql .= "article_public=1 AND article_deleted=0 AND article_uid=".$_SESSION["wcs_user_id"]." AND ";
break;
case 2: $sql .= "article_aktiv=1 AND article_deleted=0 AND ";
break;
} // end switch
$sql .= " article_nosearch!=1 AND article_begin<NOW() AND article_end>NOW()";
Just a request - thinking OliG has plans for this in the long run. This might have been mentioned before. Please excuse if this is a repost....