2015-09-11 19:59
浏览 69


I am using Drupal 7.

In a node, I have a field collection, and in that field collection I have a field called 'amount' which is an integer field.

When I try to display this value within a view column using 'Views PHP' module, in the available variables it appears as

$row->field_amount: Field collection item: amount

However when I print/echo this, the value that appears is not correct. It seems to show the ID of the field collection or so.

On extra note, the view is a taxonomy view. It is deriving the field collection field using a relationship to the node.

How can I get it to show the actual value inserted in views php?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新