[development] Field name in view template woes
Jeff Greenberg
jeff at ayendesigns.com
Thu Dec 31 07:28:13 UTC 2009
On 12/31/2009 1:04 AM, Earl Miles wrote:
>
> Look at $view->fields['field_id_of_the_field'] -- items that have to
> get data from a secondary query -- which includes any CCK field that
> may be multiple, for example -- will store its data in whatever format
> it needs on its own object via the pre_render() function.
>
>
In fact, the image field can be multiple, and is set in the view to show
1 image. I added a dump of $view->fields, and it's empty. So if I
include the image for display, it shows when I print $content, even
though I've created $content without explicitly including it in the
statement.
More information about the development
mailing list