Change content in page.tpl.php depending on the page I am creating a custom Drupal 7 theme and I have an image slider within page.tpl.php, I want to be able to change the images that it is cycling through depending on what page it is on.

I'm using the Views module with Views Slideshow.

If anyone can point me in the correct direction I will be very thankful.

Cheers,

Luke
As you're already using a View to create your slideshow, could you not simply use an argument to change the View output based on URL? I would need to dig into the specifics of your site to help further, but that seems like the easiest thing to do - no custom functions necessary.