Remember me

How do I get this Metro layout

7 years 3 months ago #1

  • Jacqui's Avatar
  • Jacqui
  • Posts: 7
I am looking at this sample of metro www.balbooa.com/showcase/extension/gallery

I want to have four columns but have one larger image at the start of the gallery that would span two columns and not be square, it would be 520px x 260px then four images next to it of 260 x 130 pix each

I can't work out how to do that

Completely new to this I set the picture size to 520 (half my template) but it still keeps cutting off the image at 260pixels because of the four columns

Please assist

Witchypaws
Attachments:

7 years 3 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hello,

To display gallery in Metro Grid like on our demo: www.balbooa.com/showcase/extension/gallery
you need:

1. Enable Metro Grid Layout


2. Set up image width / height - 600px

Regards,

7 years 3 months ago #3

  • Jacqui's Avatar
  • Jacqui
  • Posts: 7
HI Artem

thanks for that, that works for a particular layout

I am trying to do this though, any pointers about how would be most appreciated

I am happy to use more than one album or gallery if needed but the layout would have to be as per this exact configuration

I do not have this on a live site anywhere yet as I cannot make it public until it is correct





Thanks

Jacqui

7 years 3 months ago #4

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hi,

It's possible to make as here:





Go to: components/com_bagallery/helpers/bagallery.php

Find (Line 683) and replace from:
$height2[] = 8 * $i + 1;
                $height2[] = 8 * $i + 2;
                $width2[] = 8 * $i + 7;
                $width2[] = 8 * $i + 8;

to
from $height2[] = 5*$i+5;
                $width2[] = 5*$i+5;
                $width2[] = 7*$i+9;
                $height2[] = 14*$i+2;

Regards,

7 years 3 months ago #5

  • Jacqui's Avatar
  • Jacqui
  • Posts: 7
Thanks artem

I can make that work

I will use one gallery and module for the top lines and then create a second one to have smaller logos under them

Better than having to make three or more galleries

Thanks for all your help

Jacqui
Powered by Kunena Forum