1
我在我的主題的.info中定義我的腳本在2組;這些預加載的身體和那些裝載後的文件是這樣的:Drupal打印.info腳本組分別
; Scripts in head group to load pre-body
scripts[head][] = js/cufon.js
scripts[head][] = js/font.js
; Scripts in end group to load after all other html
scripts[end][] = js/scripts.js
有沒有什麼辦法,我認爲單獨打印出來這些?我以爲我會abble做這樣的:
<?php print $scripts['head']; ?>
<!-- html -->
<?php print $scripts['end']; ?>
感謝
我檢查了所有瓦爾範圍,並不能找到任何暗示腳本通過傳遞到組視圖 – DonutReply 2012-03-09 12:06:46