I'm using Perch CMS and I'd like to try and minimise the number of templates I've used.
I'd like to be able to show and hide sidebar content depending on which page is being viewed.
Let's say my sidebar has three modules:
Module-A
Module-B
Module-C
and I have three pages
/home
/about
/blog
I think I need to write a 'else if' statement, how would I write the following in PHP?
If on home page show Module-A
If on about page show Module-B
If on any other page show all Modules