[SOLVED] Unnecessary wrapping DIV element in group fields

More
8 years 7 months ago #57271 by agata
Hello,
Unfortunately the problem seems to be back now, when using custom code I get the elements wrapped in <span " ></span> which totally scrambles a layout on one of the sites I manage. The code is not correct and shouldn't be there at all when using custom code with the group field. I looked into the code of the field plugin and found the following
Code:
if (!$pretext && !$posttext && !$display_mode) { $pretext = '<div class="fc-fieldgrp-value-box">'; $posttext = '</div>'; } $pretext = '<span '.$fieldgroup_itemtype_code.'" >'.$pretext; $posttext = $posttext.'</span>';
which looks like it's responsible for that glitch, however if I change it, it doesn't fix it. But I can't see anything else that could be causing it. I will continue investigating but would be great if you could look into it as well.
Thanks,
Agata

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

More
8 years 7 months ago #57272 by ggppdk
Hello

yes but it should be ok, with v3.0.9-dev2

github.com/FLEXIcontent/flexicontent-cck/releases

please confirm


-- 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
8 years 7 months ago #57274 by agata
Hello,
Thank you for such a quick reply, yes it seems to work better.
Best,
Agata

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

More
8 years 7 months ago #57275 by ggppdk
Hello

an important change in v3.0.9-dev is proper handling of numbers/currency/percentages in field
text/number/custom validation

please read changelog for the above

and provide some feedback too


-- 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.278 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