vielen Dank Dooki hast mir bis jetzt sehr geholfen. Habe das "Problem" jetzt mit deiner Hilfe wie folgt gelöst.
Zum Nachmachen falls noch jmd das machen will.
Habe jeweils eine neue Navbox erstellt (also eine *.PHP Datei im Ordner \pkinc\publicinc) Die Datei habe ich dann je nach Inhalt der kategorie benannt.
In die PHP Datei habe ich dann folgendes eingetragen
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
if(!defined('pkFRONTEND') || pkFRONTEND!='public')
die('Direct access to this location is not permitted.');
$boxlinks=array();
$query=$SQL->query("SELECT
".pkSQLTAB_CONTENT.".content_id,
".pkSQLTAB_CONTENT.".content_title
FROM ".pkSQLTAB_CONTENT."
LEFT JOIN ".pkSQLTAB_CONTENT_CATEGORY." ON ".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id=".pkSQLTAB_CONTENT.".content_cat
WHERE ".pkSQLTAB_CONTENT.".content_option=1 AND
".pkSQLTAB_CONTENT.".content_status=1 AND
(".pkSQLTAB_CONTENT.".content_expire>'".pkTIME."' OR
".pkSQLTAB_CONTENT.".content_expire='0') AND
".pkSQLTAB_CONTENT.".content_time<'".pkTIME."' AND
".sqlrights("".pkSQLTAB_CONTENT_CATEGORY.".contentcat_rights")." AND
".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id='5'
ORDER by ".pkSQLTAB_CONTENT.".content_time DESC
LIMIT 5");
while(list($id,$title)=$SQL->fetch_row($query))
{
$title_cutted=pkEntities(pkStringCut($title));
$title=pkEntities($title);
$boxlinks[]=pkHtmlLink(pkLink('article','','contentid='.$id),$title_cutted,'','pknidheadline'.count($boxlinks),'pkcontent_a_'.$navalign,$title);
}
return $boxlinks;
?>
|
in der Zeile 18 wird dann die Kategorie bestimmt. Jetzt muss diese Datei nur noch abgespeichert werden und dann hochgeladen werden. (in den Ordner \pkinc\publicinc) Die neue Navbox ist dann jetzt unter "Navigation > Kategorien" auswählbar.
Danke vielmals für deine Hilfe Dooki, war ja mehr oder weniger deine Arbeit.
Denn noch Lust auf die RSS Sache?
Gruß Cyras