Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By davidh59 on
I have a content type, and I would like to add a field (full html) in which to paste Adsense code for a single ad.
My intention is to have that single ad code appear in the body of all nodes of that content type.
I have tried adding a text field, but I am unable to make the formatted code appear in the node.
Any suggestions would be greatly appreciated. Thank you.
Comments
Are you already printed the
Are you already printed the proper node object in the node.tpl.php file and the code doesn't show?
No, I have not inserted the
No, I have not inserted the code into the node.tpl.php file... I was hoping to be able to display the field like we used to do in Drupal 6, with a CCK field that would give me the option of formatting it as markup text. Perhaps this is not possible in D7? Thanks