Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dynamenu in grey CategoryBox


Recommended Posts

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

Link to comment
Share on other sites

Open catalog/includes/boxes/dm_categories.php and read the configuration options at the top. It's in there.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 3 weeks later...
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

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:

Link to comment
Share on other sites

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

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

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

 

???? 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 by bkellum

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...