Closed (fixed)
Project:
OpenPackage Video
Version:
5.x-3.10
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2008 at 00:23 UTC
Updated:
1 Jul 2008 at 01:18 UTC
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
Comment #1
xvx commentedFound 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.