Issue with item image size & universal content module

More
10 years 8 months ago #44747 by bytekultur
Hi,

there seems to be an issue with the display of flexicontent universal content module on an flexicontent item's page: an item's image (in item view) is suddenly displayed in smaller size than desired and no matter what parameters I change, always the small thumb (with prefix s_) is displayed. This noramlises as soon as I deactivate the module, so it seems that the module "takes control" of the thumbnail display of your item's view.


I went through the whole code of the module and ended up with the field helper, which is also used for the module, and found the line that causes it:
around line 645 in this file
components/com_flexicontent/classes/flexicontent.fields.php

The problem can be temporarily solved by changing this:
Code:
JRequest::setVar("flexi_callview", $view);
to this:
Code:
if($view != 'module') { JRequest::setVar("flexi_callview", $view); }

Basically ignoring the view setting for the module output.
I am not sure if there is a better solution (a setting that I might have overlooked) or if it's a bug, but the "hack" works for me.


---
Version of Module: 1.3
Version of FlexiContent: 2.1.2

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

More
10 years 8 months ago #44748 by ggppdk
Hello

the item displayed in item view is same as one of the items displayed by the module

[updated]
the above was a question, by mistake i wrote it as if it was a statement


-- 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
10 years 8 months ago #44750 by bytekultur
Thank you. I realised that, but I find it a little disturbing, I wouldn't have expected this as both have their own settings. Therefore I thought it might not be on purpose...

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

More
10 years 8 months ago #44754 by ggppdk
Hello

sorry,
my previous message was a question,
- by mistake -
i wrote it, as if it was a statement


-- so you have answered my question:
in your case,
module displays current item too

The reason for the issue is that HTML display of each item-field pair is creates display once,

so module code is executed first and it create the field first

- will examine what we can do about it

in your case, (if appropriate),
you can configure the module to exclude the current item from the list


-- 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
10 years 2 months ago #49042 by bytekultur
OK, I will try that. But for this website I need the item in the module too and can't exclude it, as I use the module as some kind of accordion-menu, where the active item should also appear, of course.

I am a huge fan of the flexicontent module, it solves (with a bit of coding/templating skills) nearly every challenge from dynamic menus to slideshows etc. etc.

Maybe have a look at the code line I have changed, does it have a disadvantage to change that so display is not renderered the same in module / item view?

Regards,
Terry

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.445 seconds
Save
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