Custom output of the field seems not work for "Custom function"

More
6 years 7 months ago #69315 by lomuyeh
Hi
Thanks for your effort to fix bugs in previous version.

I have some fields using "custom function" in the "Custom Output" in viewing of the field.
After upgrade to 3.2.1, seems it's not working.

The "Integer" still working.

In first 2 images, I set it return 'aaa' in custom function, nothing change. The field still showing the value.
Another 2 images shows that the integer options working well.

Did I miss any option or it's a bug?

By the way, the value separator "~" is I modified the text plugin file. (Check last image)
Do you think it's good to add a function that let user to input the value separator they want?

Thanks,
Lomu

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

More
6 years 7 months ago #69317 by ggppdk
Hello

i remember changing something about it

but i had tested and it was working
are you also using custom layout for this field ?


-- 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
6 years 7 months ago #69319 by lomuyeh
Hi
The layout is default. I didn't make any other layout for the field.

I've just test decimal and it's working.

So maybe just the problem of custom function.

Thanks,
Lomu
Attachments:

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

More
6 years 7 months ago #69321 by ggppdk
Hello

i ll test custom function code and make a fix
will include fix in v3.2.1.1

but will give you fix here tomorrow

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.

More
6 years 7 months ago - 6 years 7 months ago #69322 by ggppdk
Hello

here is the fix for custom output function not working

plugins/flexicontent_fields/text/text.php

replace:
Code:
$format_output = $field->parameters->get('format_output', 0);

with:
Code:
$format_output = (int) $field->parameters->get('format_output', 0);


-- 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...
Last edit: 6 years 7 months ago by ggppdk.
The following user(s) said Thank You: lomuyeh

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

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