Hi all,
sorry for being such a novice that I really do not have a clue to which topic I should write this…
anyway, here is the story:
I am a user of opencart (MVC - model, view, controller system) and a bit modifying some templates of it with trial by error method.
I am stuck now with the following problem and desperately need some help from you guys:
- template has a top menu with class designed outlook and hover effect. however, a completely different class is designed if the link is active.
- so, I have managed to differ it by php if function in the header.tpl file under
- section, like as follows:
[code]<li<?php if($currentpage == $home) {echo " class=menu_1_active";} else {echo " class=menu_1";}?>><?php echo $text_home;?>
if I insert the line:
$this->data['currentpage'] = $this->$_SERVER['REQUEST_URI'];
before the line:
$this->data['currentpage'] = $this->$_SERVER['REQUEST_URI'];
it gets me back with neither an error nor desired effect.
What am I doing wrong here?
Can anybody help with instructions how and where to name/define different pages / links in the opencart system?
Help is extremely appreciated.
Thank you!