0

I have a view with one field called production hours.

I have several rows in this view but have used the sum aggregation setting.

The only value I get is the total of all the values in the field production hour.

Im now trying to access that total value via php.

So I add header, if I select text area I can use the field using tokens, but if I try and insert that token into php code nothing happens.

All I want to do is get the sum of field production hours and output the total but convert it to days instead of hours.

Thanks for any help

  • You should be able to use the rewrite output option for the field. From your question and use of tokens you may have already tried this. If you have and it is not working perhaps a screen shot will help figure out why. – sareed Dec 22 '14 at 19:12
  • Try another approach. Look at Views hooks, select the correct one (post query, pre-render), and try to apply your alteration to the field there. – J. Reynolds Dec 23 '14 at 5:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.