Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I tried the views_php but I have no luck. Any link to its documentation?

I want to add some custom field with PHP code inside it but the one I did return nothing. Please see the attached picture.enter image description here

share|improve this question
Have you enabled the php filter. – Sumit Madan Dec 26 '12 at 6:16
Can't find that PHP filter. – ninjascorner Dec 26 '12 at 6:29
Oh sorry I got that. Already enabled. – ninjascorner Dec 26 '12 at 6:30
No need of enabling php filter module. – Sibiraj PR Dec 26 '12 at 6:33
Oh I thought I need that – ninjascorner Dec 26 '12 at 6:35

1 Answer

up vote 9 down vote accepted

Yes you can add php code using views_php

Add field in views global Add field in views Then add code you need is in Output code sector. I thing here is the problem for you. you add php code to 'Value code'. Add php code in output field Then look at the preview. it's done!!!!!! Look at the preview

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.