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

ainigma32’s picture

Status: Active » Fixed

Use 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

Status: Fixed » Closed (fixed)

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