Hallo Tom
I see, that you call all your included pages except the index page with the "mod" parameter.
So you could use another Interakt SB to only show the mp3-player when the mod-parameter is empty:
Search for the "Show if Conditonal Region" SB in your Server Behaviors panel; should be:
"MX Kollection" --> "Conditional Regions" --> "Show if Conditional Region"
Select your mp3-player region within your code and apply the "Show if..." SB.
Your code should then look like this:
<?php
// Show IF Conditional region1
if ("mod" == "") {
?>
This is the code where your mp3-player sits.
<?php }
// endif Conditional region1
?>
The above code only shows your mp3-player if the mod parameter has no value, meaning, that when calling your index page, it will show, but when you call any other page (for example: http://manlikejez.co.uk/index.php?mod=charts) the mp3 player won't show.
However, there would be a better method to get what you want:
I would creat another include page that contains the code for the mp3-player, call it mp3.php.
Within dreamweaver you could add another "URL-variable":
- In the "Bindings" panel click the "+" button and add "mp3" as a URL-variable.
- In your "master page" create an include region that contains your "mp3.php" (Important: Choose "Server Side Include" - NOT" Server Side Include from list")
- Apply the "Show if Cond..." Server Behavior (see above, but set change the parameter settings from "mod" to your new URL-variable "mp3": Your code should now look like this:
<?php
// Show IF Conditional region1
if ("mp3" == "1") {
?>
<?php
mxi_includes_start("path_to/mp3.php");
require(basename("path_to/mp3.php"));
mxi_includes_end();
?>
<?php }
// endif Conditional region1
?>
- Now you can call any page with the mod-parameter + you can decide, if you want the mp3-player and simply control it by adding "&mp3=1" to your link:
http://manlikejez.co.uk/index.php?mod=charts
does not show the player, but
http://manlikejez.co.uk/index.php?mod=charts&mp3=1
will display your charts-page and the player.
Hope that helps...
Cheers
Willi