XH_Shop backend issue

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: XH_Shop backend issue

Post by frase » Fri Aug 16, 2019 12:54 pm

I see - I feel compassion.
:cry:

milkodb
Posts: 47
Joined: Sun Jun 23, 2013 11:00 pm
Location: Italy

Re: XH_Shop backend issue

Post by milkodb » Fri Aug 16, 2019 12:58 pm

:D

in any case, XH-Shop seems to have no problem with the new XH as opposed to Wellrad and therefore there is no alternative. At work...
Milko

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: XH_Shop backend issue

Post by frase » Fri Aug 16, 2019 1:03 pm

E' cosi' che stanno le cose.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: XH_Shop backend issue

Post by cmb » Sun Aug 18, 2019 8:49 am

milkodb wrote:
Fri Aug 16, 2019 11:22 am
XH_Shop does not seem to allow this possibility. In fact, it does not allow the display of any subdirectories present in the final folder indicated in the path set in the plugin configuration.
Indeed, Controller::getImageFiles() ignores any subdirectories. I've landed a pull request which would add support for hierarchical folder structures. If you want to try that, just replace the existing ::getImageFiles() function with the new one.
Christoph M. Becker – Plugins for CMSimple_XH

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: XH_Shop backend issue

Post by frase » Sun Aug 18, 2019 9:04 am

cmb wrote:
Sun Aug 18, 2019 8:49 am
If you want to try that, just replace the existing ::getImageFiles() function with the new one.
Wow, that was fast!
And it works. So it is enough to specify a main folder. The shop finds the subfolders and offers the pictures in the select field.
Well done, Christoph!

milkodb
Posts: 47
Joined: Sun Jun 23, 2013 11:00 pm
Location: Italy

Re: XH_Shop backend issue

Post by milkodb » Sun Aug 18, 2019 2:56 pm

perfect! Thank you very much, you saved me a lot of work.
Great Christoph!
Milko

Post Reply