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.
Sorry, newbie here.
Is there some way to just inject js code into one created node? (Not the template node)
I see where it has an option to add the js on specific pages and it gives examples.
I just want it to show on this url: /Contact (uses Page template)
I tried adding that, but it doesn't seem to work.
Otherwise, if this just adds the js to the node template why not just add the js to the page.tpl.php?
Thanks!
Comments
Comment #1
iantresman CreditAttribution: iantresman commentedIf you have a URL:
http://www.mydomain.com/contact
, then to make the injection appear on this one page, you would specify "Add on only the listed pages", and the page (without the leading /):Comment #2
rcross CreditAttribution: rcross at CrossFunctional commented