Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.11
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2011 at 15:45 UTC
Updated:
14 Feb 2011 at 11:55 UTC
Hello,
i need to see the value of a cck in the view, i trie with:
print $node->field_customname_value[0]['value'];
and
print_r($node);
for see all the value
but i didn't see result.
How can I work with this value from php?
I don't need to see this value, but if it is true i do .... if it is false i do...
Comments
Comment #1
dawehnerWhich kind of template are you creating?
At every template at the top there is quite a lot of help text which variables are availible. For example:
Comment #2
liminu commentedI have this:
This is my views-view-fields.tpl.php
And i need to get the value of the cck in this: views-view-grid.tpl.php
How can i do this?
Thank
Comment #3
iamjon commentedIf you look at the theme information you can get print out of the templates.
It looks like $item has your value. You can also look at the $rows variable to see what it gets.