Here is an example of what I am trying to do:
In the code including list.php, before you include, you can set a variable called $this_page and then list.php can see the test for the value of $this_page and act accordingly.
list.php
$this_page