[TYPO3-commerce] Problem about links in CATEGORY_LIST_ITEM

Erik Sokoll erik at t3media.de
Tue Apr 6 14:13:07 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Solution:
To turn off the GET variables tx_commerce_pi1[path] and
tx_commerce_pi1[mDepth] in links inside CATEGORY_LIST_ITEM you have to
set...
plugin.tx_commerce_lib.useRootlineInformationToUrl = 0
...in your CONSTANTS field.

After this a category navigation done by
'user_tx_commerce_catmenu_pub->init' works fine again and the current
main- and sub-category stays expanded.



Erik Sokoll schrieb:
> Hi Ingo,
> 
> 1.)
> Could you please tell me how?
> Because the manual tells me nothing about it, the german manual tells me
> nothing, static/setup.txt and constants.txt tells me nothing and
> Aunt-Google can tell me nothing as well. Last but not least I checked
> admin-tools/configuration but there was nothing as well.
> 
> The things I tried (to turn off mDepth) did not work.
> 
> Maybe there are others who would be happy to find an answer here.
> (and maybe both versions?!?) *shy smile*
> 
> 2.)
> Am I not right, talking about a bug, as long as the DEFAULT behaviour is
> creating additional parameters in one part (content area) which breaks
> an other part (navigation)?
> 
> Greetings...
> Erik
> 
> Ingo Schmitt schrieb:
>> Hi Erik,
> 
>> you could disable the path and mDepth parameters in TS for the menue or you could enable them for typolinks, this should be the same for both types of links. 
> 
>> Regards
> 
>> Ingo
> 
>> Hi People,
>> talking about bugs and fetures [1] I would say the following things are
>> bugs, like someone got an idea and now it's still inside the code.
> 
>> Links to (sub-) categories inside CATEGORY_LIST_ITEM contain...
> 
>> &tx_commerce_pi1[path]=79,2,1
> 
>> ...and...
> 
>> &tx_commerce_pi1[mDepth]=2
> 
>> ...and this will break a navigation done by
>> user_tx_commerce_catmenu_pub->init. So the whole menue is collapsed
>> after using this link.
>> Moreover - and as far as there is only one product inside this
>> sub-category - the link contains tx_commerce_pi1[showUid] as well.
> 
>> As far as I know [path] and [mDepth] show only up here, which made me
>> thinking about a bug.
> 
>> [1] http://files.myopera.com/freejerk/files/bug-feature.jpg
> 
>> Greetings...
>> Erik
> 
>> P.S. Live Demo available by PM.
> 
>> Erik Sokoll schrieb:
>>>>> Dear group,
>>>>> if I use the template subpart ###CATEGORY_LIST_ITEM### to make a list of
>>>>> the included sub-categories, the links under CATEGORY_ITEM_TITLE and
>>>>> CATEGORY_ITEM_TEASERIMAGES guide to the 'detail' page [1] and not to the
>>>>> 'product list' page [2] like in the (left side-) navigation, which I
>>>>> create by using user_tx_commerce_catmenu_pub.
>>>>> (This happens although 'overridePid' is set to the 'product list' page-ID.)
>>>>>
>>>>> The resulting problems are as following:
>>>>>
>>>>> 1. The 'detail' template is wrong in this case. In my opinion it should
>>>>> guide to the 'product list', because there are more products inside the
>>>>> sub-category.
>>>>>
>>>>> 2. The normal navigation (user_tx_commerce_catmenu_pub) breaks, so the
>>>>> corresponding part of the navigation is not expanded (and you do not
>>>>> know where you are).
>>>>>
>>>>> 3. This crazy empty <li> shows up again in the end of the 'normal'
>>>>> navigation (user_tx_commerce_catmenu_pub).
>>>>>
>>>>>
>>>>> The links are:
>>>>>
>>>>> wrong (e.g. CATEGORY_ITEM_TITLE)
>>>>> [1]
>>>>> http://XXX.XXXXXXX.de/Details.30.0.html?&no_cache=1&tx_commerce_pi1[catUid]=43&tx_commerce_pi1[path]=30,2,1&tx_commerce_pi1[mDepth]=2&cHash=e95d873e7794c46cfe464e7a94a30136
>>>>>
>>>>> correct (user_tx_commerce_catmenu_pub)
>>>>> [2]
>>>>> http://XXX.XXXXXXX.de/Produktliste.31.0.html?&no_cache=1&tx_commerce_pi1[catUid]=43&cHash=79e03d7868
>>>>>
>>>>>
>>>>> Question:
>>>>> Does anybody know how I can change this?
>>>>> Please please help!
>>>>>
>>>>>
>>>>> Some additional informations:
>>>>> Commerce version 0.12.2
>>>>> TYPO3 version 4.3.2
>>>>> HTML-template: the original one for products
>>>>>
>>>>> If someone want's to see this in a 'live Demo', please send me a PM. An
>>>>> BE-login is available as well (for people I know).  ;)
>>>>>
>>>>> Workaround:
>>>>> If I edit the plugin under web/page and take out the reference to the
>>>>> 'detail' page, it stays on the 'product list' but the navigation from
>>>>> user_tx_commerce_catmenu_pub still breaks (and of course the empty <li>
>>>>> shows up again).
>>>>>
>>>>>
>>>>> Greetings...
>>>>> Erik
>>>>>
>> _______________________________________________
>> TYPO3-project-commerce mailing list
>> TYPO3-project-commerce at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
> 
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
>>>
> 
>> Mit freundlichen Gruessen
>> Ingo Schmitt
> 
> 
> 
> 
_______________________________________________
TYPO3-project-commerce mailing list
TYPO3-project-commerce at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLuyVTuogOZOO2WPQRAq8yAJ9vD78vFC7sPn+ExYlCRRC6npWP2QCfaya0
YYIyAWSkqHQIc6pEmm1udNs=
=kahJ
-----END PGP SIGNATURE-----


More information about the TYPO3-project-commerce mailing list