Hi,
in CC4 I'm using PHP code in custom list body, changing background color, italic, bold, etc. based on field value. Tried PHP code in CC5 Table display mode HTML setting but didn't work. OK, it is a HTML setting.
PHP functions use is not clear for me. Can someone provide a practical example?
Thanks... Béla
P.S: I'm just trying migraete from CC4 to CC5, there are many attractive new features but differences too.
in CC4 I'm using PHP code in custom list body, changing background color, italic, bold, etc. based on field value. Tried PHP code in CC5 Table display mode HTML setting but didn't work. OK, it is a HTML setting.
PHP functions use is not clear for me. Can someone provide a practical example?
Thanks... Béla
P.S: I'm just trying migraete from CC4 to CC5, there are many attractive new features but differences too.
Hi Béla,
You can use the "PHP functions", here is how it works:
You define the field name first then write the function return:
You can use the variable "$cell" to get the value of that field, or the variable "$row" to get any value of any field in that row:
Regards,
Max
You can use the "PHP functions", here is how it works:
You define the field name first then write the function return:
Model.field:return "xyz";
You can use the variable "$cell" to get the value of that field, or the variable "$row" to get any value of any field in that row:
$row["Model"]["field"]
Regards,
Max
Hi Béla,
You can use the "PHP functions", here is how it works:
You define the field name first then write the function return:
Model.field:return "xyz";
You can use the variable "$cell" to get the value of that field, or the variable "$row" to get any value of any field in that row:
$row["Model"]["field"]
Regards,
Max
That's interesting but where to do you define this? There are a ton of various settings for a CC connection. I'm lost.
In the "PHP functions" box under the front/admin listing area.
You should check the tutorials under FAQs > CCv5 first
Regards,
Max
You should check the tutorials under FAQs > CCv5 first
Regards,
Max
This topic is locked and no more replies can be posted.