37
I feel dumb!
Jack's solution does work but I can only give one topic id, so no matter what, when I navigate through the theme changing block, I always see the news related with the defined topic id.
Mithrandir's solution is a problem for me.... Let me put the suggested code here related to the rest of the code...
I put the code in de /modules/news/index.html file
Quote:
include '../../mainfile.php';
$xoopsOption['template_main'] = 'news_index.php';
$xoopsOption['theme_set'] = 'what do i put here?';
include XOOPS_ROOT_PATH.'/header.php';
include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php';
switch($xoopsOption['storytopic']) {
case '21': //if it is topic with id 21
$xoopsConfig['theme_set'] = "Bredervoort";
break;
case '22': //if it is topic with id 22
$xoopsConfig['theme_set'] = "Commujon";
break;
}
if (isset($HTTP_GET_VARS['storytopic'])) {
$xoopsOption['storytopic'] = intval($HTTP_GET_VARS['storytopic']);
} else {
$xoopsOption['storytopic'] = 0;
}
etc...........
I updated the newsmodule and nothing changed with the displayed news topics when I navigate through the theme changing block.
As I said: I feel dumb