I need help inserting a single line html code within the area of a particular node type (full node view). The content type is named "engflash".

I understand that I should create a file called "page-engflash.tpl.php" inside "sites/all/themes/acquia_marina" and place this line inside the area:

  <?php print("<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js\"></script>"); ?>

The problem is that this does not work. The above desired line does not show inside the page source of that node type, even after clearing the caches.

Is there something I have understood wrong ?!

Thanks in advance.

Comments

W.M.’s picture

To clarify, I have inserted the above code inside the "HEAD" area of the "page-engflash.tpl.php" file

mecano’s picture

have a look at theme_preprocess_page() in template.php

jeremycaldwell’s picture

Status: Active » Fixed

Have a look at this comment as well as the one right below it for instructions: http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_se...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.