Forums / All Other Contributions/Addons / Category Tab Simple Dropdown Menu

Category Tab Simple Dropdown Menu

Started by hem on 13 Nov 2009, 10:10 AM · Views: 18,243

Results 21 to 40 of 86
19 Nov 2009, 1:42 PM
#21
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

Category Tab Simple Dropdown Menu

Thanks Andrew

nearly there!

please look at https://www.derekbryant.co.uk/zen

is there a way to sort out the drop down menu width and placement?

thanks for your help

Derek

19 Nov 2009, 4:35 PM
#22
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Category Tab Simple Dropdown Menu

#navCatTabsDropdown * li ul
{
	visibility:hidden;
	position:absolute;
	left: 35%;
	padding: 0.5em;
	z-index: 100;
}
```Add a width to this if desired.
19 Nov 2009, 5:02 PM
#23
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

many thanks Andrew & Glen

I've added a width statement - https://www.derekbryant.co.uk/zen

I actually want to use this on one of my active sites, this is just a trial site for downloads

many thanks once again for your time

Derek

19 Apr 2010, 1:44 PM
#24
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

Hello, This mod is great.

However, I have one small problem... my subcategories are not listing properly. Some of them appear next to the the previous or are randomly aligned right rather than underneath it. It's most likely something fixed with the CSS but I've tried a bunch of stuff and nothing works so far.

To see exactly what I mean visit www. queenib. com, the most obvious example is beneath the womenswear tab or the lingerie tab as viewed in IE, Firefox and Safari.

I'm baffled. :huh:

19 Apr 2010, 3:27 PM
#25
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Category Tab Simple Dropdown Menu

beep:

Hello, This mod is great.

However, I have one small problem... my subcategories are not listing properly. Some of them appear next to the the previous or are randomly aligned right rather than underneath it. It's most likely something fixed with the CSS but I've tried a bunch of stuff and nothing works so far.

To see exactly what I mean visit www. queenib. com, the most obvious example is beneath the womenswear tab or the lingerie tab as viewed in IE, Firefox and Safari.

I'm baffled. :huh:

It looks like you could be using an old version. Try the version posted here: http://www.omnicia.com/Zencart%20Category%20Tab%20Simple%20Dropdown%20Menu.zip

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

19 Apr 2010, 4:11 PM
#26
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Category Tab Simple Dropdown Menu

Did you add the <br /> tags between list items? The stylesheet has all <li> in #navCatTabsDropdown floated left, which negates the usual list-item behavior. You can change that for submenus of the main drop menu with this:```
#navCatTabsDropdown li li {float: none;}


It seems to be clumsy handling of the setup - perhaps the new version fixes that.
23 Apr 2010, 10:25 AM
#27
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

Thanks guys! I haven't installed the new version yet but that CSS fixed it right up.

While I'm here I have another question which I haven't been able to find an answer for yet... Do you know how to show the dropdown for only subcategories and disable the dropdown for products?
For example under the 'powder room' category.

23 Apr 2010, 10:39 AM
#28
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Category Tab Simple Dropdown Menu

beep:

Thanks guys! I haven't installed the new version yet but that CSS fixed it right up.

While I'm here I have another question which I haven't been able to find an answer for yet... Do you know how to show the dropdown for only subcategories and disable the dropdown for products?
For example under the 'powder room' category.

Comment out or delete the following:

		$products_tab_query="SELECT p.`products_id`, pd.`products_name`, pd.`language_id` FROM ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd WHERE p.`master_categories_id`='".(int)$categories_tab->fields['categories_id']."' AND p.`products_id`=pd.`products_id` AND pd.`language_id`='".(int)$_SESSION['languages_id']."' ORDER BY p.`products_sort_order`;";
		$products_tab=$db->Execute($products_tab_query);
		if($products_tab->RecordCount()>0)
		{
			echo '<ul>';
			while (!$products_tab->EOF) 
			{	
				$cPath_new=zen_get_path($categories->fields['categories_id']);
				$cPath_new=str_replace('=0_', '=', $cPath_new);
				echo '<li>'.'<a href="'.zen_href_link(zen_get_info_page($products_tab->fields['products_id']),$cPath_new. '&products_id=' . $products_tab->fields['products_id']) . '">'.$products_tab->fields['products_name'].'</a></li><br />';
				$products_tab->MoveNext();
			}
			echo '</ul>';
		}

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

23 Apr 2010, 8:06 PM
#29
techiegirl avatar

techiegirl

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

Having issue with drop down in IE7. When you mouseover a category the drop down appears to the right of the selected category and subcategories cannot be chosen.

Wasn't sure if this was a problem for anyone else. Works fine in IE8.

Need to find out what needs to be changed to correct the issue.

Thanks!

23 Apr 2010, 11:29 PM
#30
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Category Tab Simple Dropdown Menu

techiegirl:

Having issue with drop down in IE7. When you mouseover a category the drop down appears to the right of the selected category and subcategories cannot be chosen.

Wasn't sure if this was a problem for anyone else. Works fine in IE8.

Need to find out what needs to be changed to correct the issue.

Thanks!

hmmm- I need to find a copy of IE7

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

27 Apr 2010, 12:06 PM
#31
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

I have just notice that now when viewed in safari all the page content of pushed off the page to the right. It didn't do this before and looks fab in EI and Firefox. I have tried altering the css position but it just makes the menu overlap.
The menu itself looks fine but any ideas how I put the page content back where it is supposed to be?

27 Apr 2010, 12:12 PM
#32
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

... and apparently when I align the #navCatTabsDropdown li right all the contents go back to normal but then the categories are listed backwards.

27 Apr 2010, 12:25 PM
#33
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

hem:

Comment out or delete the following:

	$products_tab_query="SELECT p.`products_id`, pd.`products_name`, pd.`language_id` FROM ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd WHERE p.`master_categories_id`='".(int)$categories_tab->fields['categories_id']."' AND p.`products_id`=pd.`products_id` AND pd.`language_id`='".(int)$_SESSION['languages_id']."' ORDER BY p.`products_sort_order`;";
	$products_tab=$db->Execute($products_tab_query);
	if($products_tab->RecordCount()>0)
	{
		echo '<ul>';
		while (!$products_tab->EOF) 
		{	
			$cPath_new=zen_get_path($categories->fields['categories_id']);
			$cPath_new=str_replace('=0_', '=', $cPath_new);
			echo '<li>'.'<a href="'.zen_href_link(zen_get_info_page($products_tab->fields['products_id']),$cPath_new. '&products_id=' . $products_tab->fields['products_id']) . '">'.$products_tab->fields['products_name'].'</a></li><br />';
			$products_tab->MoveNext();
		}
		echo '</ul>';
	}

This worked a charm, thanks hem. :wink:
Now I just have this alignment weirdness to sort out.
29 Apr 2010, 6:33 PM
#34
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

Hello, thought i should give a visual. This is what is looks like in Safari when I try to align the drop-down categories menu left and all the content is pushed off screen...

21 May 2010, 3:17 PM
#35
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

Has anyone got any ideas how I can fix this safari problem? I can't figure out why it only happens in safari.
It's been like this for a couple of weeks and look a big mess to any of the safari visitors :(

21 May 2010, 3:35 PM
#36
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Category Tab Simple Dropdown Menu

beep:

Has anyone got any ideas how I can fix this safari problem? I can't figure out why it only happens in safari.
It's been like this for a couple of weeks and look a big mess to any of the safari visitors :(

Do you have any safari visitors? Whenever I check the browser section of my webstats I never see any.

As for the resolving the issue- I'm afraid I'm not a Mac or Safari user so I'm not sure how I'm going to debug this.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

24 May 2010, 11:38 AM
#37
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

Yes, Safari is my visitors' third most popular browser... If anyone else reading this thread is Safari savvy, please help?! :(

24 May 2010, 12:19 PM
#38
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

I appear to have fixed the problem, however have not yet been able to test it in different versions of Safari, so please let me know if it looks ropey in your browser.
A friend also told me that using Safari she wasn't able to use the category drop-downs, has anyone else experienced this problem?

For future reference the CSS fix was:

clear:both; margin-bottom: 20px; text-align: left;
``` all added to navCatTabsWrapper
(which was almost identical to something i tried before but for some reason this one worked and the other didn't.)
25 May 2010, 2:42 AM
#39
1kell avatar

1kell

Zen Follower

Join Date:
Jul 2008
Posts:
151
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

any idea why this wouldn't be working for me at all? I can get the CatTabs showing but theres no dropdown. I am using version 1.3.8a, turning the cat tabs on for now and the site is miracle baby . co . nz. Thanks - hope it will go on my site as this is just what i need.

25 May 2010, 3:03 AM
#40
1kell avatar

1kell

Zen Follower

Join Date:
Jul 2008
Posts:
151
Plugin Contributions:
0

Re: Category Tab Simple Dropdown Menu

Take that back it is showing up now but the "dropdown" categories are not listing in a dropdown menu, they are in a box crammed in next to each other and flying off so far that you can't select an item to click on. Looks very messy, a bit of guidance on fixing it up? I can try with css but don't know how successful I will be ...