0

私は Drupal 7 と Omega Base テーマを使用しており、サブテーマはそれから作成されています。「Feeds」モジュールを使用して画像を含むノードをインポートするためにマップされたフィールドを持つカスタム コンテンツ タイプを作成しました。それはすべて働いています。

私がする必要があるのは、各ノードにある画像に JavaScript スライドショーを適用して回転させることです (一部のノードには複数の画像があります)。

「Feeds」モジュールからデータをインポートするときに作成されたすべてのノードに JavaScript を適用するように、JavaScript を Omega テンプレート ファイルに追加する方法を誰か教えてもらえますか?

firebugを使用してプレビューを機能させることさえできません。困惑した。

ありがとう

4

1 に答える 1

0

One way of doing this is to copy "html.tpl.php" from omega/templates/ to YourTheme/templates/ folder. Then, add the Javascript just above the < /body> tag at the bottom of the page. This will make the Javascript applied throughout the website.

If you need to apply only to a particular content type you create, copy "node.tpl.php" from omega/templates/ to YourTheme/templates/ folder and rename it to "node--Your_Content_Type_Name.tpl.php". (Note the double-dashes and underscores!). Then add the Javascript to this file.

于 2013-07-12T22:54:38.823 に答える