I created a view, and I need to put some PHP or JavaScript in it. I would like to add some if conditions.
Is this possible?
I created a view, and I need to put some PHP or JavaScript in it. I would like to add some if conditions.
Is this possible?
It kind a depends of where in your view you want to use php. But if it is in fields there are two options:
Yes, it is possible.
If you want to use PHP in views header, you can go to configure header, select "Global: Text area" and have to change text format to PHP code; you have to first install the PHP filter module.
If you want to use PHP in view fields, you can use the Computed field module.
If you want to use PHP in a view itself, you have to customize your views and then you can easily add PHP code to it.
in the field of view you can add Global PHP field
you can fiend this field in the header or in footer