111oneeleven Posted May 16, 2009 Posted May 16, 2009 Dynamenu shows up in the standard grey categorybox with header. I just need the dynamenu without categroybox field. I searched several threads but didnt find the answer. :blink: Any ideas? Installation of Dynamenu was very easy with Bill Kellums instruction "DYNAMENU&STSv4" found here: http://www.oscommerce.com/community/contributions,4456 Thanks for the great contribution. Adrian Quote
♥kymation Posted May 16, 2009 Posted May 16, 2009 Open catalog/includes/boxes/dm_categories.php and read the configuration options at the top. It's in there. Regards Jim Quote See my profile for a list of my addons and ways to get support.
111oneeleven Posted May 17, 2009 Author Posted May 17, 2009 Open catalog/includes/boxes/dm_categories.php and read the configuration options at the top. It's in there. Regards Jim Thanks for that thought Jim! I looked at catalog/includes/boxes/dm_categories.php. The box can be removed including the header with changing $show_dmcats_as_box = true; to $show_dmcats_as_box = false; The box is gone but so also the fly out effect.... I like to keep the fly out effect. I found that the header text can be removed in this file with changing $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); to //$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); I didnt identify further options. Any chance to remove the grey box with header and keep the fly out effect? Take care, Adrian Quote
♥kymation Posted May 17, 2009 Posted May 17, 2009 There's probably an easy way to do this, but I don't have time to play with the code, so here comes the overkill. In catalog/includes/boxes/dm_categories.php, find new infoBox($info_box_contents); and change that to new borderlessBox ($info_box_contents); Now open catalog/includes/classes/boxes.php and add this near the bottom class borderlessBox extends tableBox { function borderlessBox ($contents) { $this->table_parameters = 'class="main"'; $this->tableBox ($contents, true); } } Note that other contributions add this code, so check that you don't add it twice. Of course you have to leave $show_dmcats_as_box = true; Regards Jim Quote See my profile for a list of my addons and ways to get support.
111oneeleven Posted May 17, 2009 Author Posted May 17, 2009 There's probably an easy way to do this, but I don't have time to play with the code, so here comes the overkill. In catalog/includes/boxes/dm_categories.php, find new infoBox($info_box_contents); and change that to new borderlessBox ($info_box_contents); Now open catalog/includes/classes/boxes.php and add this near the bottom class borderlessBox extends tableBox { function borderlessBox ($contents) { $this->table_parameters = 'class="main"'; $this->tableBox ($contents, true); } } Note that other contributions add this code, so check that you don't add it twice. Of course you have to leave $show_dmcats_as_box = true; Regards Jim Jim, I have to thank you. :D Its working great now. The fly out is there and the box is gone. May I add that the header can be removed completely too by going from here in catalog/includes/boxes/dm_categories.php $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); new infoBoxHeading ($info_box_contents, false, false); to //$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); //new infoBoxHeading ($info_box_contents, false, false); Thanks again, Adrian Quote
111oneeleven Posted June 3, 2009 Author Posted June 3, 2009 Jim, I have to thank you. :D Its working great now. The fly out is there and the box is gone. May I add that the header can be removed completely too by going from herein catalog/includes/boxes/dm_categories.php $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); new infoBoxHeading ($info_box_contents, false, false); to //$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); //new infoBoxHeading ($info_box_contents, false, false); Thanks again, Adrian One question on the format though. I want to put dynamenu in a html table row (sts template). There are two cells, one should have dynamenu and the other another menu. The problem is that there is a gap between the two cells and it seems that dynamenu has something like a border around it. I tried to close the gap by using css in catalog/stylesheet.css and html code directly at the table, but nothing helped. Any ideas what I could do? :blink: Quote
♥kymation Posted June 3, 2009 Posted June 3, 2009 That's because the menu is still in a box, there's just no box border shown. To get rid of the space would require getting rid of the box and writing the menu to display directly. I'm fairly certain this can be done, but takes more knowledge of the existing code and templates (or more fiddling with the code) than I can do. Maybe someone else can help. Regards Jim Quote See my profile for a list of my addons and ways to get support.
bkellum Posted June 4, 2009 Posted June 4, 2009 (edited) Jim, I have to thank you. :D Its working great now. The fly out is there and the box is gone. May I add that the header can be removed completely too by going from herein catalog/includes/boxes/dm_categories.php $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); new infoBoxHeading ($info_box_contents, false, false); to //$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); //new infoBoxHeading ($info_box_contents, false, false); Thanks again, Adrian ???? Why not just change the look of the style in your stylesheet? /*---------------------------------*/ /* Vertical Fly-Out Menu Style */ /*---------------------------------*/ .verbar { /* Color of main vertical menubar and border */ color: black; background-color: #e6e7e6; border: 1px outset #fdfefd; } /*---------------------------------*/ /* Vertical Fly-Out Menu Style */ /*---------------------------------*/ .verbar { /* Color of main vertical menubar and border */ color: black; background-color: transparent; border: 0px outset #fdfefd; } Edited June 4, 2009 by bkellum Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.