body vars

tchibo - February 25, 2009 - 19:41
Project:Video Upload
Version:6.x-1.0
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello!

I'm using this modul in combination with the modul "contemplates" and now i need the body variables to
include the video in the changed content.
Can anybody help me ?

Greets from Austria =)

#1

jhedstrom - February 26, 2009 - 03:16

The contemplate module should show you the various properties of the node.

Typically though, the structure is something like:

<?php
$node
->content['field_{field_name}'][0]['value'];
?>

#2

tchibo - February 26, 2009 - 13:40

thank you for your replay!

my fieldname is : field_video

the contemplate modul shows me no variable which fits in, things like that are given:

$node->content['field_video']['#context']
full
$node->content['field_video']['#access'] (boolean)
TRUE
$node->content['field_video']['#type_name']
lofer_blog
$node->content['field_video']['#field_name']
field_video
$node->content['field_video']['#weight']
45
$node->content['field_video']['#post_render'] (array)

$node->content['field_video']['#post_render'][0]
content_field_wrapper_post_render

i have tried your suggestion:
$node->content['field_video'][0]['value'];

but this is what i get:
http://www.youspeak.at/hp/lofer/node/292

there should be a video between "website" and "mal ein Video zum testen".

helllp =)

#3

tchibo - March 6, 2009 - 18:03

is there anybody who can help me ?

 
 

Drupal is a registered trademark of Dries Buytaert.