fn in row doesn't appear

Display a custom function output in a table view column.

Overview

The issue occurs when using a function name containing an underscore in the CF table view.
Ensure the function uses 'echo' instead of 'return' for direct display and verify the function name syntax in the view configuration.

Answered
Connectivity v6
we webcrea 23 Jun, 2017
hi,

I create a simple function get_fonds_vl

$html = "(444)";
return $html;

in table views

Columns list
fonds.lastvl:Valeur

Columns views
fonds.lastvl:{fn:get_last_vl}

And nothing appear in the column on the front !!! It should be (444) in each row

An idea
Max_admin Max_admin 23 Jun, 2017
Hi Christophe,

When you use "return" in the function then the value will be under {var:fn_name}, but if you use "echo" then the value will be directly displayed, which is what you need to do here.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
we webcrea 24 Jun, 2017
Answer
Hi Max,

I tried

in the function
echo "444";
or
return "444";

and in view
fonds.lastvl:{fn:get_last_vl}
or
fonds.lastvl:{var:get_last_vl}

in all combination and nothing appears in the column

Without underscore it works 😀

thanks
Max_admin Max_admin 25 Jun, 2017
Hi Christophe,

You mean an underscore in the function name ? that should not be a problem.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
we webcrea 25 Jun, 2017
1 Likes
Hi Max,

So i don't understand, now it works well with underscore!!!

Regards
This topic is locked and no more replies can be posted.