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 2020-03-27 20:55:29

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Galleria random dataSort

Hi all,

how can I activate dataSort: 'random' in the Galleria slideshow?
Do I have to do it in the galleria-1.5.7.min.js and if, how?

Best regards,
Oliver

Offline

#2 2020-03-27 21:29:46

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

Re: Galleria random dataSort

See this:

https://ttg-tips-and-tricks.barbeephoto … ide-shows/

It’s not the same issue but it might point you in the right direction


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 2020-03-27 23:11:48

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: Galleria random dataSort

Thank you Rod, that did the trick! :-)

Offline

#4 2020-03-27 23:49:20

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

Re: Galleria random dataSort

smile


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 2020-04-02 22:28:50

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Galleria random dataSort

Oliver,

Do you mind sharing how you got this working? I'm trying to do the same thing.

Thanks,
Kyle


Kyle Lucy Photography
kylelucy.com

Offline

#6 2020-04-02 22:38:10

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

Re: Galleria random dataSort

Are you editing the file mentioned in my tutorial with a plain text editor?

You can add dataSort:‘random’ in place of or in addition to the code mentioned in that post.

Be sure to clear Backlight’s Template cache after uploading the edited file.


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 2020-04-02 23:19:39

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Galleria random dataSort

Got it, thank Rod. I didn't know to clear the template cache; it's working now.


Kyle Lucy Photography
kylelucy.com

Offline

#8 2020-04-03 02:38:25

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Galleria random dataSort

Is this an option that could be added to the Galleria frontend? If we modify the file, it will be overwritten every update. It looks like the transition speed was added in the last update.


Kyle Lucy Photography
kylelucy.com

Offline

#9 2020-05-01 02:22:26

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: Galleria random dataSort

Hello all,

same thing works in the new & fantastic Backlight3 :-)

Just add -> dataSort: 'random', <- like below:

Galleria.addTheme({
  name: 'pangolin-inline',
  version: 1.5,
  author: 'The Turning Gate',
  defaults: {
    clicknext: true,
    debug: false,
    fullscreenCrop: false,
    imageCrop: true,
    maxScaleRatio: undefined,
    preload: 2,
    responsive: true,
    thumbnails: false,
    transition: 'fade',
    dataSort: 'random',
  },

Offline

Board footer

Powered by FluxBB