Skip to main content
3 events
when toggle format what by license comment
Sep 14, 2015 at 9:15 comment added Cesar Thanks. I finally found the fields that I needed. But my solution is so cumbersome that I doubt it is correct. I want to not display a field if another one has a value 0. I do not know how to do this just with the options available in the UI of Views. I finally used hook_views_pre_render to change the output for a value "-1", and then in hook_block_view_alter, change the -1 with an empty string. The -1 was shielded by especial chars [[-1]] to avoid problems in the replacement of the text.I find this solution so cumbersome that something must be wrong,may i can set a field visibility to false
Sep 14, 2015 at 9:10 comment added Sujith N Hi, you should be able to change your field value in hook_views_pre_render. $view->results has it all. This may be helpful knackforge.com/blog/sivaji/…
Sep 14, 2015 at 8:36 history asked Cesar CC BY-SA 3.0