Hi, i need to display an image on only pages that contain certain url in my ecommerce site.

For example, i want to add an image to http://www.test.com/catalog/1 and any others extended from this such as http://www.test.com/catalog/1?page=1.

Can anyone help me with the php for this? Thanks.

Comments

nevets’s picture

My first though would be to use a custom block that hold the image since you can control the visibility of a block based on the path.

ss84’s picture

thanks, but im trying to avoid using blocks here (long explanation why)

Sole Assassin’s picture

This can be done by making the file names variables and an if statement to display the image on certain node / pages.