Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-07-02 18:56:02

jlnony87
Member
Registered: 2015-07-02
Posts: 5

Next(Right arrow key)

Hello,
I use CE4 Publisher with CE4 auto index and CE4 Pages to create my templates.
How can I change Next(right Arrow key) and Previous(Left Arrow key) in a slideshow ?
I live in France, and I would have Pécédente(flèche gauche) and Suivante(Flèche droite) instead of Next(right Arrow key) and Previous(Left Arrow key).
Is-it possible to make this change and how ?
Thanks
Jl Nony

Offline

#2 2015-07-02 22:35:53

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Next(Right arrow key)

I don't see anything in CE4 Gallery to customize the tool-tip for the slideshow so it's probably going to require some customization via phplugins. (If you've not enabled phplugins site-wide yet, it certainly can't hurt to do so now)

You'd have to replace the title attribute of each arrow. I think it can be done with jQuery. If I have time I'll see if I can come up with some code. Or maybe Matt will have a better idea.

Which presentation are you using for your galleries?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2015-07-03 00:39:54

jlnony87
Member
Registered: 2015-07-02
Posts: 5

Re: Next(Right arrow key)

Thank you.
My web site is here : www.jlnony.fr/photos/
In LargeImagePresentation : I have Magnific Popup
Do we speak about the same thing?

Offline

#4 2015-07-03 01:20:11

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Next(Right arrow key)

Do we speak about the same thing?

I'm guessing your talking about the tool-tips you see when hovering over the arrows.

I'm thinking it will take some jQuery to change the title attribute for the buttons (the arrows in Magnific are html buttons).

If I get some time I'll see if I can come up with something easy. Or maybe Matt will chime in with an easier solution.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2015-07-03 03:11:40

jlnony87
Member
Registered: 2015-07-02
Posts: 5

Re: Next(Right arrow key)

I think of having solved the problem.
After you ave said, "the arrows in Magnific are html buttons, in my gallery template, I looked for  files .php and .js and I searched "Previous (Left arrow key)" and "Next (Right arrow key)" . I found them in this files :
- magnific.js - index.php - mobile.php - template_cart.php - template_index.php - template_mobile.php - template_single.php

In all this files, I changed "Previous (Left arrow key)" with "Précédente (flèche gauche)" and "Next (Right arrow key)" with "Suivante (flèche droite)", then Then, I saved them on the server.
At first sight it seems to work.
I hope to have forgotten nothing

Offline

#6 2015-07-03 03:15:18

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Next(Right arrow key)

That will work, but it will be overwritten next time you update your template. That's why I prefer coming up with solutions that don't depend on editing all those files after every time I export.

If I can come up with something I'll let you know. I may wait to see what Matt says as he usually has easier solutions.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2015-07-03 10:33:23

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Next(Right arrow key)

Should be changed on lines 207-208 of magnific.cfg.js, located in /lib/js in the plugin.

I might make localization options in a future update.


Matt

The Turning Gate, http://theturninggate.net

Offline

#8 2015-07-03 20:30:09

jlnony87
Member
Registered: 2015-07-02
Posts: 5

Re: Next(Right arrow key)

Thank you Matthew.
But I don't find magnific.cfg.js in /lib/js. Where is this file ?
I use the last version of CE4 Web Publishing bundle.
Cordially

Offline

#9 2015-07-03 21:24:15

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Next(Right arrow key)

You should be looking in the CE4-Gallery.lrwebengine plug-in

It's located wherever you installed it for your OS:
http://ce4.theturninggate.net/docs/doku … nstall_ce4

I suggest making a copy of the edited file and keeping it in another folder. Next time there's a CE4 Gallery update you can then just replace the file in the new version of Gallery with the one you've changed.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#10 2015-07-03 22:17:34

jlnony87
Member
Registered: 2015-07-02
Posts: 5

Re: Next(Right arrow key)

Thank you for all !

Offline

Board footer

Powered by FluxBB