By discursives on
Hello, thanks for all the hard work!
My quesiton is something I have been diligently looking for but have not yet found.
Can you tell me what if any PHP variables are available for placing audio into a cck node-content-tpl.php file?
When I have no tpl.php file for a new node type which has audio attach enabled, I can see all the audio options just fine.
It seems that I am not adding in the right variables, though, because as soon as I put in a tpl.php file, it themes out the audio box, including the player, the title, everything, the entire audio box.
In general, I would like to be able to control where and how this data shows up. Can anyone point me at a solution?
Comments
So....
Are you able to add a streaming player for the audio on your CCK nodes? Where people can play the audio from your website without downloading it.
Running// Mac OS X 10.4.8 // PHP 5.2.0 // MySQL 4.1.21 // Apache 1.3.33 //
Yes,...
I can attach the audio just fine, and it displays when I don't use a tpl.php file. I'm trying to figure out what code is needed to display the the audio section when I am using a node-content.tpl.php file.
have you tried <?php print
have you tried
<?php print $play_link?>?Exact same problem as
Exact same problem as Discursives, above. Using 4.7.4.
CCK with attached audio file displays flash player fine without a tpl.php file; when one is created, the player vanishes.
<?php print $play_link ?>does not work for me, alas. In Contemplate the audio field does not show up as a template variable at all. Using Views and selecting List display with Field: audio player/link also fails.When I eliminate the tpl.php template, audio player displays again. The only way to use a tpl.php that displays audio is to use the variable
<?php print $body ?>which displays the audio, but then it's not divisible from all other body content fields for theming. Frustrating.Any insights?
still looking
I still have not discovered a solution for this.
This patch *might* be a
This patch *might* be a solution, but haven't had a chance to test it out. Will do so when time allows, & report back here.