Would appreciate you can guide me on how to configure nivo slider for multi language side.

Comments

Huby’s picture

Version: 7.x-1.0-beta4 » 7.x-1.2

Same request, I need some images to be shown only on specific languages.

Huby’s picture

Category: support » feature
alexandreracine’s picture

With different url in the path, you can do this. For example website.com/FR/about or website.com/EN/about
It is the "Show slide on specific pages" option.

devin carlson’s picture

Category: feature » support
Status: Active » Closed (fixed)

As alexandreracine mentioned in #3, the best way to configure Nivo Slider for a multilingual site is to create separate slides for each language and restrict their display to a certain language by using the "Show slide on specific pages" option.

Matix_reload’s picture

Version: 7.x-1.2 » 7.x-1.4
Status: Closed (fixed) » Active

I try with "es", "es/*", "http://www.site.com/es/*", "http://www.site.com/es" in "Show slide on specific pages" and does not work!

devin carlson’s picture

Status: Active » Closed (works as designed)

Nivo Slider uses the same path logic as Drupal core which, unfortunately, does not support restricting slides using patterns such as "es" or "es/*". See support requests such as How do I show a custom block on LANGUAGE specific pages?.

If you are using Internationalization (which creates separate nodes for each language), your best bet is to enter in the node ID of the pages that you want to restrict each slide to.

Red Sky Tom’s picture

StatusFileSize
new563 bytes

I recently had the same issue and decided to use a php block when entering the text for the nivo description. Using the global language I set a variable equal to it and created an if/else statement to display the text I wanted for each language. Not really sure if this is the best way as I am only a newbie, but it worked for me.

ilias’s picture

eaglewatch’s picture

StatusFileSize
new5.22 KB

Hi!
I've just added this 2 lines in modules/nive_slider/includes/nivo_slider_slider.inc @ line 31

global $language;
$path=$language->language."/".$path;

Then I put in the Show slide on specific pages
en/*
or
lang/*

This modified file is in the attachement.

THIS WORKS ONLY WITH PATH LANGUAGE TRANSLATION

sebastiano.riva’s picture

With this solution shortcut bar disappear.
Any solution?

many Thanks

hatuhay’s picture

Issue summary: View changes
StatusFileSize
new2.48 KB

Here is a patch for language negotiation.
Only if i18n is detected.
Just added an entry on the image form with enabled languages selection.
On the modules/nive_slider/includes/nivo_slider_slider.inc file add a language condition to show or not current image.

hatuhay’s picture

Version: 7.x-1.4 » 7.x-1.11
Component: Documentation » Code
Category: Support request » Feature request
Status: Closed (works as designed) » Patch (to be ported)
littlecookingtips’s picture

Hi!
Unfortunately on nivo_slider version 7.x-1.12 the patch doesn't seem to work.
Anyone else facing this issue?

andrey.troeglazov’s picture

Assigned: Unassigned » andrey.troeglazov

  • andrey.troeglazov authored d52f5d7 on 7.x-1.x
    Issue #1367786 by hatuhay, eaglewatch, Red Sky Tom, Devin Carlson, Huby...
andrey.troeglazov’s picture

Assigned: andrey.troeglazov » Unassigned
Status: Patch (to be ported) » Fixed
Issue tags: +Nivo slider 7.x-1.13

Fixed some code styles issues and applied the patch.

@littlecookingtips if you still have any problems please write me.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.