0
swfobject_api或jwplayer模块我有swfobject_api或jwplayer模块有问题问题与在Drupal
当我使用node.tpl.php一切这个代码是罚款
$config='sample';
$flashVars=array('file' => 'path to flv');
print theme('jwplayermodule_render_player', $config, $flashVars);
但是,当我用这个在前面page.tpl.php中代码的代码无法正常工作
在节点tpl.php这个脚本返回
<script type="text/javascript" src="/projects/theme/sites/all/modules/drupal/jwplayermodule/jwplayermodule_jwembedder.js?c"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "jwplayer": { "files": { "jwplayer-1": { "flashplayer": "http://localhost/projects/theme/sites/default/files/jwplayermodule/player/player.swf", "width": "400", "height": "280", "controlbar": "bottom", "wmode": "opaque", "file": "/projects/theme/sites/default/files/1057680_0.flv", "config": "http://localhost/projects/theme/sites/default/files/jwplayermodule/configs/sample.xml", "events": [ ] } } } });
//--><!]]>
</script>
但前page.tpl.php中未返回
我把<?php print $closure ?>
在footer.php,并将其纳入前page.tpl.php中和node.tpl.php
对不起我的英语不好