Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4871 by mantik
01 Nov 2017, 14:58
Hello when i Navigate over an Categorytree i don't see any breadcrumb.

And if i go in the Detailview of an Product the Category lost his Active-State.
Its a little bit Logic because the Code for the active class is (isset($path[$id])) so in the Detailview there is no Category-parameter in the URL.

Is it not possible to solve this smarter?

Also i wish to have a breadcrum in Detailview...
#4872 by aimeos
02 Nov 2017, 12:02
mantik wrote:Hello when i Navigate over an Categorytree i don't see any breadcrumb.


Do you mean in the URL, e.g. /home/men/shorts?
This is mainly due to TYPO3/frameworks which can't handle slashes in URL parameters well.

mantik wrote:And if i go in the Detailview of an Product the Category lost his Active-State.
Its a little bit Logic because the Code for the active class is (isset($path[$id])) so in the Detailview there is no Category-parameter in the URL.


Yes, that's true. The catalog stage component retrieves the f_catid parameter from the last list view:
https://github.com/aimeos/ai-client-htm ... d.php#L378

It would be also possible to do this in the catalog filter tree part:
https://github.com/aimeos/ai-client-htm ... d.php#L224

Are you able to create a pull request for this change? We would love to integrate that into the core :-)

mantik wrote:Also i wish to have a breadcrum in Detailview...


The breadcrumb in the list and detail view is provided by the catalog stage plugin, not by the detail view itself.
#4874 by mantik
02 Nov 2017, 14:23
The breadcrumb in the list and detail view is provided by the catalog stage plugin, not by the detail view itself.


But i see it nowhere. I navigate over the Filter. is that the correct way to build an category navigation?
Maybe i can access the categories over the product variable and then build a breadcrumb :D

Other Question how can i acces Typoscript settings in the code?
In extbase normaly its $this->settings[]
#4876 by aimeos
02 Nov 2017, 22:46
That's the breadcrumb in the detail view if you click on a product in the list view of the "Home" category (doesn't work for top sellers yet, somehow):
aimeos-frontend-breadcrumb.jpg
aimeos-frontend-breadcrumb.jpg (46.26 KiB) Viewed 114 times


You can access all configuration in templates with $this->config():
https://aimeos.org/docs/Developers/Html_frontend/Template_syntax_and_view_helper#config
#4885 by mantik
06 Nov 2017, 08:00
that's nowhere... you're sure that's in the typo3 template? in wich content element?
disabled extra my theme to proof the default template... but nowhere apearing...

i proof the code. its in the stage/body-default.php but in the Detailview nowhere the call to the stage block...

so how can i do that?