Closed (fixed)
Project:
Acquia Marina
Version:
6.x-3.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2011 at 08:42 UTC
Updated:
9 Feb 2011 at 00:00 UTC
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
Comment #1
W.M. commentedTo clarify, I have inserted the above code inside the "HEAD" area of the "page-engflash.tpl.php" file
Comment #2
mecano commentedhave a look at theme_preprocess_page() in template.php
Comment #3
jeremycaldwell commentedHave 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...