ja_larix remove news module on other pages (off front page)
Adapt the template index.php to include this:
<!– END: FEATURE PRODUCTS –>
<?php } ?>
<?php //DE script to determine the page URL to $pageURL
function curPageURL() {
$pageURL = ”;
if ($_SERVER["HTTPS"] == “on”) {$pageURL .= “s”;}
//$pageURL .= “://”;
if ($_SERVER["SERVER_PORT"] != “80″) {
$pageURL .= ‘DE’.$_SERVER["SERVER_NAME"].”:”.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
// $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
$pageURL .=$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>
<?php
$de_URL =curPageURL();
//Test Search string code
$string = “com_frontpage”;
$container = $de_URL;
if(strstr($container,$string)) {
$de_FrontPage = 1;
} else {
$de_FrontPage = 0;
}
?>
<?php if ( mosCountModules(’ja-news’) ) { ?>
<div id=”ja-newswrap” class=”clearfix”>
<?php if($de_FrontPage==1) mosLoadModules ( ‘ja-news’, -2 ); ?>
</div>
<?php } ?>









Leave your response!
You must be logged in to post a comment.