Closed (fixed)
Project:
Nivo Slider
Version:
7.x-1.11
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Dec 2011 at 17:41 UTC
Updated:
4 Apr 2018 at 15:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Huby commentedSame request, I need some images to be shown only on specific languages.
Comment #2
Huby commentedComment #3
alexandreracine commentedWith 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.
Comment #4
devin carlson commentedAs 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.
Comment #5
Matix_reload commentedI try with "es", "es/*", "http://www.site.com/es/*", "http://www.site.com/es" in "Show slide on specific pages" and does not work!
Comment #6
devin carlson commentedNivo 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.
Comment #7
Red Sky Tom commentedI 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.
Comment #8
ilias commentedThis might help http://drupal.org/sandbox/drid/2006908
Comment #9
eaglewatch commentedHi!
I've just added this 2 lines in modules/nive_slider/includes/nivo_slider_slider.inc @ line 31
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
Comment #10
sebastiano.riva commentedWith this solution shortcut bar disappear.
Any solution?
many Thanks
Comment #11
hatuhay commentedHere 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.incfile add a language condition to show or not current image.Comment #12
hatuhay commentedComment #13
littlecookingtips commentedHi!
Unfortunately on nivo_slider version 7.x-1.12 the patch doesn't seem to work.
Anyone else facing this issue?
Comment #14
andrey.troeglazov commentedComment #16
andrey.troeglazov commentedFixed some code styles issues and applied the patch.
@littlecookingtips if you still have any problems please write me.