Minigallery problem with thumbs

More
12 years 10 months ago #27024 by tevez15
Hello..

I'm creating a new project, and i use the minigallery field to create a slideshows, but for that, i call that field in flexicontent module.

In category, i dont have any problem, but in article the problems begin.

suitesalba.algardata.com/pt/cont ... /contactos - In that page, notice that the assets of the two thumbs are, but on the next page that does not happen.

suitesalba.algardata.com/pt/faci ... morgadinho

This page is not the case, the template is equal, the type of article is the same, the only thing that differs is the flexi modules on the right side. If I disable, the same thing will happen on the 'Contacto'.

In short, the problem here is that the minigallery works well only if these two modules are present.

Any idea.

greetings

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #27042 by ggppdk
I am not sure where is the problem,

but i can see a JS error ... in second URL, something is creating the display minigallery for the SAME ITEM (no 97) twice, thus adding the javascript twice.

Have you tried setting the creation of field display to "Only when needed" in Global Configuration?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #27045 by igcorreia
Solved I think. Can you please explain what happen there?

**don't know why this configuration was messed up**

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #27047 by ggppdk
I cannot say without seeing configuration, just when the HTML of a field is created, the field may add some CSS and JS to the document.

In this case the minigallery field for the same item, no 97, was created twice, thus adding CSS and JS code twice.

We had added code before to avoid conflicts for
- 1. different minigallery fields e.g. both fields no 56 and no 77 are minigallery fields, these will not conflict
- 2. minigallery field for different items, e.g. minigallery field no 56 will not conflict for items no 811 and 937

- But there is no code to detect creating the same minigallery field field for same item twice, e.g. minigallery field no 56 created twice for item no 811.
This can happen if you try to display the minigallery field for same item in 2 different modules, it will be displayed in one module and then cause problem in the second one.

Furthermore, it is not supported to show same minigallery field for same item twice.

I think we must add some code into the minigallery field to detect this case , and print warning or print nothing?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #27050 by tevez15
Yes.. the notice is a good idea, print a warning, two minigalleries in one page or bad configuration :D

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #27066 by ggppdk
mmm , we do not know which of the 2 case will really output the field,

so i added code to prevent duplicate adding of JS / CSS code for field_id + item_id pair

this will in next commit

but the minigallery should be tried to be displayed twice for same field_id + item_id pair

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.318 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save