Page 1 of 1

Catatoger images are shown randomly in the frontend.

Posted: Thu Oct 27, 2016 4:48 pm
by amarant
CMSMS 2.1.5
Cataloger 1.0.1
ContentAliases 2.0
GD version 2

Images are assigned to every category and every item in the tree structure of the catalog.
In the frontend all the links for the categories and items come up, but the images with it almost every time randomly at every level.
Sometimes some images are shown and some are not and sometimes all are shown.
When all the images show up the catalog looks realy nice, but the way it works now I can't publish it.
Does anyone know what causes this and how it can be resolved.

Re: Catatoger images are shown randomly in the frontend.

Posted: Thu Oct 27, 2016 4:55 pm
by Jo Morg
I need much more info than that to be able to reproduce and troubleshoot. As far as I have tested it works for me.

Re: Catatoger images are shown randomly in the frontend.

Posted: Wed Nov 02, 2016 3:13 pm
by amarant
I tested, tested and tested more and sometimes when i go through the levels of the catalog all the images come up, but most times some images do not load.
This loading and not loading of images appears to be at random.
Clearing the cache makes no difference.

I have the following setup:
8 Item attributes and 1 category attribute.
Item Image Settings:
Maximum number of views for each Item: 1
Category Page Settings:
Maximum number of Banner images for each Category Page: 1
Default number of items per page: 12

Page setup:
A top category page with:
Display Behavior: Include all Categories immediately within this category, but not categories in sub-categories
Items Per Page: 12
3 child category pages with:
Display Behavior: Include all Items immediately within this category, but not items in sub-categories
Items Per Page: 12
2 item pages under the first category page
2 item pages under the second category page
no item pages under the third category page

I tested with both the templates that come with the module as wel as with my own templates; all gave with the same results.

The DOM Inspector of Firefox gives the following results:

For the top category when the image is not loaded:
<img src="http://localhost/cmsmadesimple/index.ph ... g&ac=11121" title="Groenten uit eigen tuin" alt="Groenten uit eigen tuin">
::before
</img>

For the category under the top category when the image is not loaded:
<a href="http://localhost/cmsmadesimple/index.ph ... _1_2"><img src="http://localhost/cmsmadesimple/index.ph ... g&ac=68160" title="Fruit uit eigen tuin" alt="Fruit uit eigen tuin">
::before
</img>
</a>

For the item under a category when the image is not loaded:
<a href="http://localhost/cmsmadesimple/index.ph ... _1_2"><img src="http://localhost/cmsmadesimple/index.ph ... g&ac=68812" title="Recept voor courgettesoep" alt="Recept voor courgettesoep">
::before
</img>
</a>

For the Item page when the image is not loaded:
<img id="item_image" name="item_image" src="http://localhost/cmsmadesimple/index.ph ... g&ac=62840" title="Recept voor courgettesoep" alt="Recept voor courgettesoep">
::before
</img>

::before and </img> are not there when the image is loaded

Re: Catatoger images are shown randomly in the frontend.

Posted: Wed Nov 02, 2016 3:26 pm
by Jo Morg
Ok and I have also been able to replicate it... I've been playing with this and don't know yet where the problem lies, although I've been able to exclude some of the possible sources of the problem. I'm trying to find a solution but may have to roll back to the previous method.
Trying to release a fix next weekend...
Thanks for your efforts, appreciated.

Re: Catatoger images are shown randomly in the frontend.

Posted: Sat Nov 19, 2016 11:05 am
by amarant
Hi Jo,

I would like to relaese the septup I made with the Cataloger module for food recipes.
Can you tell me when you expect to release the fix you mentioned in your last post.

Thank you

Re: Catatoger images are shown randomly in the frontend.

Posted: Tue Nov 22, 2016 1:16 am
by Jo Morg
A few other things came up that I had to handle first. Will try to release a fix during this week. Most likely in the next couple if days.

Re: Catatoger images are shown randomly in the frontend.

Posted: Sat Nov 26, 2016 10:37 pm
by Jo Morg
Fixed in SVN already, a new version should be out tomorrow, thanks.