Is there a way to find out what tokens are available through op_video. I am trying to get [duration] and [views] to work in contemplate but nothing seems to be showing them. I have the tokens module installed. I see there are functions in the token.inc but they are not being called from anywhere that I can see, nor is the token.inc being included anywhere.

Thanks

xvx

Comments

xvx’s picture

Status: Active » Closed (fixed)

Found this in a older post

print token_replace('[field_video-duration]', 'node', $node);

My field was named "field_upload_vidz" so the code was

print token_replace('[field_upload_vidz-duration]', 'node', $node);

I hope this helps someone else, as it made me almost punch a hole through my monitor.