2011-11-13, 06:10:29
n00dles101 Wrote:Hi leenm,That's even better, but how do I create a sidemenu for my plugin then? The createSideMenu function isn't sufficient:
we have added loadtab.php to the SVN.
Code:
unction createSideMenu($id,$txt){
$class=null;
if (isset($_GET['id']) && $_GET['id'] == $id) {
$class='class="current"';
}
echo '<li><a href="load.php?id='.$id.'" '.$class.' >'.$txt.'</a></li>';
}
I'd like to have this function working properly. I'm willing to propose improvements, but not if this is working already of course. Maybe I'm not understanding how to use the loadtab functionality with a sidemenu properly?