aneuryzm
aneuryzm

Reputation: 64834

Drupal, Views: header doesn't accept PHP

I'm using Views for some nodes, and I want to display a different View title according to which taxonomy tags are selected in my filter.

I already have taxonomy field for each node in my view. But this is not what I need. I basically need to display all the currently filtered tags on the top of my view.

I was wondering if I can solve adding some line with php, how ?

Thanks

Update: I'm now using the Views Header field in Views settings, but it only processes html code, not php, so I cannot add taxonomy terms.

Is it because of my CCK Editor settings ?

thanks

Upvotes: 2

Views: 2652

Answers (2)

Guy Saban
Guy Saban

Reputation: 1

If you have overridden the header for the display then make sure you have the View Preview set to the correct display.

Upvotes: 0

marcvangend
marcvangend

Reputation: 5642

The header should be able to accept PHP, just change the input filter to PHP. If that input filter is not available, you'll need to enable the PHP Filter module (core, optional) first.

Upvotes: 3

Related Questions