Wrapping divs in default layout breaks aimeos javascript

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
loeffe1
Posts: 52
Joined: 21 Feb 2020, 10:33

Wrapping divs in default layout breaks aimeos javascript

Post by loeffe1 » 27 Jan 2023, 14:29

I have my content main section wrapped in a div to assign some necessary classes. This however breaks aimeos javascript:

Image
Image

I tried setting a custom layoutRootPath for aimeos via plugin.tx_aimeos.view.layoutRootPaths.100 = [...] but this is being ignored.

I am using v22.10. I have worked with older versions of aimeos and never had this problem. What am I doing wrong?

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Wrapping divs in default layout breaks aimeos javascript

Post by aimeos » 30 Jan 2023, 08:48

Adding HTML via TypoScript to all pages breaks any generated JS code and you have to suppress that at the "count" page. Take a look at the TypoScript template of the "jsonapi" page, which tries to disable all kinds of additional HTML injection.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
loeffe1
Posts: 52
Joined: 21 Feb 2020, 10:33

Re: Wrapping divs in default layout breaks aimeos javascript

Post by loeffe1 » 30 Jan 2023, 09:46

That did it, thank you!

Post Reply