GT Mod and navigation/menu
GT Mod and navigation/menu
Hi guys,
the mod works fine. But something like:
{GT:stil} {NAV_ROW} {/GT} doesn't work.
Of course this makes sense.
I want to do use GT MOD so I can use the fonts I like for the navigation.
Any ideas ? Thanks alot for your help!
the mod works fine. But something like:
{GT:stil} {NAV_ROW} {/GT} doesn't work.
Of course this makes sense.
I want to do use GT MOD so I can use the fonts I like for the navigation.
Any ideas ? Thanks alot for your help!
you could try in conf.template_default.inc.php in
Code: Select all
// row based navigation
ok, Your right!
You have to edit front.func.inc.php around line 739 and change this line
to
You have to edit front.func.inc.php around line 739 and change this line
Code: Select all
$nav .= '">'.html_specialchars($GLOBALS['content']['struct'][$act_cat_id]['acat_name']).'</a>';
Code: Select all
$nav .= '">{GT:stil}'.html_specialchars($GLOBALS['content']['struct'][$act_cat_id]['acat_name']).'{/GT}</a>';
Wow. That works a little bit already. But it only works for the first navigation item. The others remain the same. The other problem would be, that would need over/on status also.
Is it a maybe a better idea to write the whole menue in CSS (incl. pics) and than link to the pages ? Than its not really a CMS anymore.
mhhh
Is it a maybe a better idea to write the whole menue in CSS (incl. pics) and than link to the pages ? Than its not really a CMS anymore.
mhhh
Ok thanks. I know how to program css menus with BG pictures. I also tried that with a similar system as GT. And it works. So I will do it all by myself in the template file
Than I make the connection to PHPWCMS with the NAV_TABLE_COLUMN:integer ? for example.
But if I add a new nav item I have to edit the template ?
Of course the other solution would be more elegant and quicker if it would work.
Thanks alot.
Than I make the connection to PHPWCMS with the NAV_TABLE_COLUMN:integer ? for example.
But if I add a new nav item I have to edit the template ?
Of course the other solution would be more elegant and quicker if it would work.
Thanks alot.
Small example
Hi there,
i made the following and it works fine by me.
in the file front.func.inc.php (at \include\inc_front) go to line 778 ( in my version (Release 1.1-RC4 27-08-2004_A) there are 4 lines before, which are outcommented) and insert the complete following code in line 778:
Below the inserted Text you see this code:
Change it like this: (Just inset {/GT} before the linktag
rownavmenuactive and rownavmenu are definded GT Styles. in my case they are defined as:
rownavmenuactive
rownavmenu
If you use the {Nav_Row} tag, you will see, that active categories are in the color of rownavmenuactive now.
It should look like this now:
So it should look:
The Red is the actual category where i was.
I hope it is understandable
greets
Bertram
// -------------------------------------------------------------
Edited more understandable
i made the following and it works fine by me.
in the file front.func.inc.php (at \include\inc_front) go to line 778 ( in my version (Release 1.1-RC4 27-08-2004_A) there are 4 lines before, which are outcommented) and insert the complete following code in line 778:
Code: Select all
if($GLOBALS['content']["cat_id"] == $key || isset($breadcrumb[$key])) {
$nav .= '{GT:rownavmenuactive}';
} else {
$nav .= '{GT:rownavmenu}';
}
Code: Select all
$nav .= ''.html_specialchars($GLOBALS['content']['struct'][$key]['acat_name']).'</a>';
$nav .= $after;
Code: Select all
$nav .= ''.html_specialchars($GLOBALS['content']['struct'][$key]['acat_name']).'{/GT}</a>';
$nav .= $after;
rownavmenuactive
rownavmenu
If you use the {Nav_Row} tag, you will see, that active categories are in the color of rownavmenuactive now.
It should look like this now:
Code: Select all
//$nav .= '<a href="index.php?';
//$nav .= ($GLOBALS['content']['struct'][$key]['acat_alias']) ?
//html_specialchars($GLOBALS['content']['struct'][$key]['acat_alias']) : 'id='.$key.',0,0,1,0,0';
//$nav .= '">'.
if($GLOBALS['content']["cat_id"] == $key || isset($breadcrumb[$key])) {
$nav .= '{GT:rownavmenuactive}';
} else {
$nav .= '{GT:rownavmenu}';
}
$nav .= ''.html_specialchars($GLOBALS['content']['struct'][$key]['acat_name']).'{/GT}</a>';
$nav .= $after;
}
}
if($nav) {
$nav = $GLOBALS['template_default']["nav_row"]["before"].$nav;
$nav .= $GLOBALS['template_default']["nav_row"]["after"];
}
return $nav;
}
// -------------------------------------------------------------
The Red is the actual category where i was.
I hope it is understandable
greets
Bertram
// -------------------------------------------------------------
Edited more understandable
Last edited by bebernl on Thu 2. Dec 2004, 16:31, edited 1 time in total.
Is it possible to add a mouse overeffect? So it eg. change from one background to another?brans wrote:thanks
So it eg. change from
Verdenna_Transparent_style
to
Verdenna_redbackground_style
http://www.studmed.dk Portal for doctors and medical students in Denmark