Hi,
thanks for your post, and sorry for the trouble.
No, sorry, string comparisions are not possible 🙁
The IF function in TablePress can only understand numbers or numeric values.
Regards,
Tobias
Me again,
And…Is it possible that when put NO in a field this file became in other color?
Hi,
not directly, and not with formulas. You would have to use some custom PHP code for this that, for example, hooks into the tablepress_cell_css plugin filter hook, and adds an extra CSS class to the cell, if the cell content is “NO”. With that CSS class, you can then set an extra background color in the cell.
Regards,
Tobias
Hi tobias,
Me again.
I not very expert in php, but i thinks would be something like this…
<?
if ($row[“Alquilado”]=NO)
echo ‘<tr style=”background-color:#ff0000″>’;
?>
But I cant find where put it.
Thanks for your help.
<?
if ($column[“Alquilado”]=NO)
echo ‘<tr style=”background-color:#ff0000″>’;
?>
Sorry
Hi,
no, that’s a little bit too easy. You would have to write a small custom WordPress plugin that uses add_filter() to hook into tablepress_cell_css_class, which gets passed several parameters, see https://github.com/TobiasBg/TablePress/blob/1.5.1/classes/class-render.php#L648
That information can then be used for the check.
You could maybe try using the other available TablePress Extensions as the starting point for your custom Extension.
Regards,
Tobias
I tried to do it but it is so difficult for me.
Could you help me?
Hi,
I would love to, but unfortunately I just don’t have time to develop this Extension within the free support that I can offer, sorry 🙁
Regards,
Tobias