How to configure and adapt Aimeos based shops as developer
Forum rules: Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#1471 by garwat82
03 Mar 2015, 15:46
Hey Aimeos folks

I'm still working on the product export from time to time and noticed that it would be nice to have partial templates just like in other template engines. The implementation as view helper was very simple and I've already created a pull request:

The real work arises from making this view helper available in the applications because it can't be instantiated automatically due to required constructor parameters. The PR has to be merged in advance before I can adapt the Symfony2 bundle. and the other integrations has to be adapted as well ... hoping for some help ;-)


#1472 by aimeos
03 Mar 2015, 16:55
Hi Garret

Cool! I've merged your PR.
Now, what has to be changed?
#1473 by garwat82
03 Mar 2015, 18:15
In theory it isn't that much. You only have to add the "partial" helper to the view but it needs the template paths and that differ for job controller and html clients. I've solved this by passing the paths from outside and adaptes the commands and controllers accordingly. You can take my PR as reference: