VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
CHECK OUT OUR PAGE ON GOOGLE +
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: Multilingual and Slider

Multilingual and Slider 12 Aug 2013 16:27 #2723

Hey there!

Because i use multiple menues (one for each language on my site) instead of the 'main menu', the slide effect didn't work anymore.

I followed this advice, but, of course, now the slider is visible on EVERY menue item click.

Is there any way to rewrite this 'if' statement so, that the slider works ONLY on the 'Home' button in EACH menue?
<?php
if ($menu->getActive() == $menu->getDefault()) : ?>
<div id="jf-slideshow">
<div class="main clearfix">
 
</div>
</div>
<?php endif; ?>

To something like that?
if ($menu->getActive() == $menu->getDefault(en) or $menu->getDefault(de) or $menu->getDefault(fr)) : ?>


Sorry, i suck at PHP

Thanks in advance!!!

  • Posts:2
  • PeAfa
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Multilingual and Slider 13 Aug 2013 11:49 #2726

You must into admin area assign your module only to "home" menu items of your languages...

  • Posts:502
  • theres no place like joomfreak.com
  • m.freak
  • Platinum Boarder
  • OFFLINE
  • Karma: 0

Re: Multilingual and Slider 13 Aug 2013 13:48 #2734

Thanks for the quick reply!

You guys do a great job here - much appreciated!!!

Works just fine now

  • Posts:2
  • PeAfa
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Multilingual and Slider 25 Oct 2013 14:13 #3244

enother solotion

follow this topic:
www.joomfreak.com/forum/categories/jooml...tion-visibility.html

modify index.php of template:
if ($menu-&gt;getActive() == $menu-&gt;getDefault()) : ?&gt;
with:

  • Posts:37
  • peppeirace
  • Junior Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.58 seconds

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.