Closed (fixed)
Project:
Drupal core
Version:
5.10
Component:
block.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2008 at 21:10 UTC
Updated:
14 Jul 2012 at 23:34 UTC
Hello,
I have created a new block. In that block I have java script code and I wan't it to display only on node pages.
So, I want this block to display in all node pages like: mywebsite.com/node/123
I have selected "Show on only the listed pages" and then I wrote those lines
node/1*
node/2*
node/3*
node/4*
etc...
This is working, but when I go to mysite.com/node/23/edit or anything else after node number, then block is also displayed. I like it to be displayed only on node/23, not node/23/more/links.
Maybe I need some special PHP code for that ? Please, help. Thank you!
Comments
Comment #1
ainigma32 commentedUse some code to check if the path ends with node or with node/xxx. See here http://drupal.org/node/115419 to get you started.
- Arie