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-10-02 01:07:07

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Thumbnails for gallery index not identical...

The problem : I have two identical CE4 Pages for an English and a French version of the same site. I built both, at the same time, using Lightroom 4. All parameters are the same, or so I think, except for the text.
When I get to the French gallery (Oeuvres) the thumbnails are how I designed them. The settings are, in the Auto-Index section, for ICONIC thumbnails at an aspect ratio of 2/3, 4 collums, height 45px and spacing 8px. The English side has identical setting. And yet, the thumbnails are quite different. They look less tall. And the order is different.

I've looked around in Lightroom, trying to spot discrepancies to no avail.
And I don't want to redo everything.
Is there a php file or something that contains the parameters and that I could edit?

Or would it be better to control these with CSS?

Offline

#2 2015-10-02 01:15:20

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

Re: Thumbnails for gallery index not identical...

It's hard to tell anything without seeing it.
It could be due to a number of things. Can you post links?


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-10-02 01:32:00

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Thumbnails for gallery index not identical...

lucnadeau.ca

Sorry about that.

Offline

#4 2015-10-02 04:16:08

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

Re: Thumbnails for gallery index not identical...

the album order is based on the slug of the album; they're listed alphabetically. And each of those Galleries pages are displaying them alphabetically. The slugs for the albums differ between the French and English version.

Still looking at the css to see why the aspect ratios are different. You could try exporting the English version again and uploading the galleries.php file and the lib/css/ folder.


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-10-02 04:19:49

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

Re: Thumbnails for gallery index not identical...

For the English version, it looks like the aspect ratio is set to 3:1


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

Offline

#6 2015-10-02 04:44:17

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Thumbnails for gallery index not identical...

Do you see this by looking at the source code? In what file is this aspect ratio set?

Offline

#7 2015-10-02 05:37:02

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Thumbnails for gallery index not identical...

As a matter of fact here are the screen shots from Lightroom...

[img]pideja.ca/img/fr.png[/img] and [img]pideja.ca/img/en.png[/img]

Offline

#8 2015-10-02 05:42:14

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

Re: Thumbnails for gallery index not identical...

Do you see this by looking at the source code? In what file is this aspect ratio set?

No. I used the browser's inspector and it gave the dimension. I just did the math.

you need to include the full url for your screen shot images to show up


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

Offline

#9 2015-10-02 05:44:11

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

Re: Thumbnails for gallery index not identical...

did you try re-exporting and uploading Pages for the English site?


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-10-02 05:52:28

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

Re: Thumbnails for gallery index not identical...

What's strange is that your screen shots show the aspect ratio of 2:3 (giving a portrait orientation), yet in your French Galleries page, the aspect ratio is 3:2 (giving a landscape orientation) and in your English Galleries page it's 3:1


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

Offline

#11 2015-10-02 06:12:53

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Thumbnails for gallery index not identical...

I take it you've seen the screenshots. Just in case here is the full url:
http://pideja.ca/img/fr.png and http://pideja.ca/img/en.png

It's precisely that strange behaviour that puzzles me.

I tried to copy the french template and copy it into the english one, correcting all the text (tedious) but I must have missed something because the page did not show up correctly. I'll try again tomorrow morning, Montreal time.

Offline

#12 2015-10-02 06:20:22

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

Re: Thumbnails for gallery index not identical...

I think you need to reverse those aspect ratio numbers. Put the 3 on top and the 2 on the bottom for both Pages setups. Then export and upload both the galleries.php files and the lib/ folders.


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

Offline

#13 2015-10-02 23:59:03

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Thumbnails for gallery index not identical...

Thanks for the information, Rod.
Saved a lot of time.
I changed the thumbnail sizes on the jpeg images and the aspect ratio in Lightroom.
I exported the modified french page, replaced the galery.php and lib folder.
Then I uploaded the same gallery.php (editing the text so it's in English) with the corresponding lib folder and...TADAAA!

Once again, Rod saves the day.

Offline

#14 2015-10-03 00:02:01

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

Re: Thumbnails for gallery index not identical...

pideja wrote:

Once again, Rod saves the day.

I should put that on a mug!  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

#15 2015-10-03 00:17:24

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

Re: Thumbnails for gallery index not identical...

Oh, and I finally found the css that controls the aspect ratio! So yay!


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

Offline

#16 2015-10-03 00:57:50

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Thumbnails for gallery index not identical...

Where is this CSS, pray tell?

Offline

#17 2015-10-03 01:08:35

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

Re: Thumbnails for gallery index not identical...

.album-core {
    height: 0;
    margin: 0 auto;
    padding: 0 0 50%;
    position: relative;
}

it's the padding setting that does it. That sets the bottom padding.
50% is a 2:1 ratio
33% is a 3:1 ratio

in /lib/css/style-component.css line 760


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

Offline

#18 2015-10-03 01:09:55

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Thumbnails for gallery index not identical...

Merci beaucoup!

Offline

#19 2015-10-03 01:14:49

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

Re: Thumbnails for gallery index not identical...

Apparently, that padding is what gets set when you set the aspect ratio in Lightroom


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

Offline

Board footer

Powered by FluxBB