Language and Index specific adjustment.

Laus
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Wed Aug 01, 2007 9:54 am

Language and Index specific adjustment.

Postby Laus » Wed Jun 11, 2008 10:13 am

Hi All,

I am working on a site which has a sentence and 3 buttons which shows collapsing modules on homepage.

I have figured out how to change language by using the JoomFish tips and tricks, however I don't want the sentence to appear at all if the modules are not on the page, in other words I only want it to appear on the homepage.

Here is a bit of code from the template index.php that I am trying to figure out how to adapt:

Code: Select all

<?php } ?>
<p><span class="orange"><?php  if($mosConfig_lang == 'english') { echo '3 strategies to more visitors...'; }?><?php  if($mosConfig_lang == 'cymraeg') { echo 'strategeolau 3...'; }?></span></p>
<?php if(mosCountModules('user5')) { ?>
<h2 class="toggler atStart"><img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/mod_5_swi.png" alt="Click here to switch module 5" title="Click here to switch module 5" /></h2>
<?php } ?>
<?php if(mosCountModules('user6')) { ?>
<h2 class="toggler atStart"><img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/mod_6_swi.png" alt="Click here to switch module 6" title="Click here to switch module 6" /></h2>
<?php } ?>
<?php if(mosCountModules('user7')) { ?>
<h2 class="toggler atStart"><img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/mod_7_swi.png" alt="Click here to switch module 7" title="Click here to switch module 7" /></h2><?php } ?>


I have tried using an AND statement but my PHP skills are not as good as I illuded myself they were.

Would anybody care to suggest what to do please - thx!

Still in draft, but feel free to check out site: http://vps.featheredflyer.net/~swwtpco/

Return to “Welsh Forum”

Who is online

Users browsing this forum: No registered users and 3 guests