I found a solution. I made a condition test directly in the index.php file. I first placed this code snippet at top somewhere, its a function to get the active URL:
<?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .=
$_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
$thisUrl = curPageURL();
$pos = strpos($thisUrl,"/item/");
?>
I then placed this little code snippet around the div containing the slideshow:
<?php
if($pos <= 0): ?>
<div id="nyhetsrull">
<?php if($this->countModules('user5')) : ?>
<div id="user5"><jdoc:include type="modules" name="user5" style="xhtml"/></div>
<?php endif; ?>
</div>
<?php endif; ?>
So, if the string "/item/" shows up in the url, the slideshow dissappear.
This at least works. If anyone know a more elegant solution, please tell.