Topic with no new replies

Submenue disappears on product page / Subnavi verschwindet bei Anzeige eines Produktes


Author Message
Written on: 26. 05. 2010 [08:04]
flobo79
Florian
Topic creator
registered since: 26.05.2010
Posts: 2
Hi folks,

I use follwing TS to display the Navigation:

TYPOSCRIPT
includeLibs.user_tx_fbmagento_navigation = EXT:fb_magento/lib/class.tx_fbmagento_navigation.php
lib.magentonavi = COA_INT
lib.magentonavi.10 = HMENU
lib.magentonavi.10 {
 
	wrap = |
 
	special = userfunction
	special {
   		userFunc = user_tx_fbmagento_navigation->categories
		pid = 19
		startcategory = 3
	}
 
	expAll = 0
 
	1 = TMENU
	1 {
		itemArrayProcFunc  = user_tx_fbmagento_navigation->clear
 
		wrap = <ul style=“text-align: left“>|</ul>
		noBlur = 1
		expAll = 1
		wrap = <ul id=“sub-level1“>|</ul>
 
		NO {
			wrapItemAndSub = <li class=“first“>|</li> |*| <li>|</li> |*| <li class=“last“>|</li>
		}
		ACT = 1
		ACT {
			wrapItemAndSub = <li class=“first active“>|</li> |*| <li class="active">|</li> |*| <li class=“last active“>|</li>
		}		
	}
 
 
	2 < .1
	2.ACT = 2
	ACT {
		wrapItemAndSub = <li class=“first active“>|</li> |*| <li class="active">|</li> |*| <li class=“last active“>|</li>
	}
	3 < .2
}


This works fine until I reach the product page, then the subnavigation goes away. How can I get the respective subnavigation keep from dissappearing when I am in the product scope?


Hier nochmal fuer die deutschsprachigen unter uns, die Subnavi verschwindet wenn man auf ein Produkt klickt, das rockt natuerlich nicht, kann mir dabei jemand helfen? Der Demo Code von dem Demoshop waere hilfreich icon_smile.gif

Written on: 27. 07. 2010 [16:22]
erik
Erik
registered since: 13.04.2010
Posts: 3
Hi, das Problem habe ich heute lösen können. Mehr Informationen unter http://blog.erikkothe.de/2010/07/probleme-mit-submenu-bei-typogento/

Grüße Erik

[This article was edited 1 times, at last 27.07.2010 at 23:29.]
Written on: 24. 11. 2010 [09:41]
erik.dahlin
erik
registered since: 02.11.2010
Posts: 11
Hey,
I had the same problem and found that it has to with class.tx_fbmagento_navigation.php.
It uses the parameter [shop][id] for checking which category is active.

This works fine while [shop][controller] equals "category". But when you click on a product the controller changes to "product". Which means that [shop][id] now is the id of the current product, not the current category. There's an additional param available called [shop][category] which should be used instead.

To solve the problem I made some changes to the php file.



Portal information:

At the moment there are 0 users online, thereof 0 registered users and 0 guests.
Today 0 registered users and 0 guests were already online.

Now online


TypoGento has 236 registered user, 113 topics and 187 answers. On average 0.23 posts are written per day.