fieldgroup and empty value in child field

More
1 day 23 hours ago #85858 by micker
with pleasure

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
22 hours 34 minutes ago - 22 hours 32 minutes ago #85859 by kath
PS:

Just fyi, I found out something:

Again, the problem-abstract is:
In php, when reading fieldgroups' data (incl. value, thumbs_src, display_arr, etc.),
images "sometimes" land in the wrong indexes:

EXAMPLE:
User intends to build a slideshow via backend-form;
backend-form shows fieldgroup;
fieldgroup has fieldgroup-elements with text and image fields;
only last element's image is filled by user.

EXPECTED: image in php (field's thumbs_src) shows in last array element.
OBSERVED: image in php (field' thumbs_src) shows in seemingly random (e.g. first) array element.

SOLUTION:
Solutions is to load (aka. FlexicontentFields::getFieldDisplay()) the fields in the right order. The right order is: fieldgroup"-fields last

This is reproducable here, and was not intuitive for me until now. Maybe i missed some docs though :)
Last edit: 22 hours 32 minutes ago by kath. Reason: fixed typo

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.623 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