Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
GeoPal
Experienced
Topic Author
Posts: 204
Joined: 20 Dec 2007, 12:56

Block grid for clients' logos

02 Mar 2019, 06:59

I was thinking of how to put the logos of my clients and then remembered block-grid from the Demo. So here is what it came out:

http://panomagic.eu/locations/

I like the result, hopefully can be useful to someone too.
Best, G
 
User avatar
mjau-mjau
X3 Wizard
Posts: 11794
Joined: 30 Sep 2006, 03:37

Re: Block grid for clients' logos

02 Mar 2019, 07:19

This is a custom content block grid, nice n' clean  :thumbsup:

Any reason you didn't use a gallery grid for this?
 
User avatar
GeoPal
Experienced
Topic Author
Posts: 204
Joined: 20 Dec 2007, 12:56

Re: Block grid for clients' logos

02 Mar 2019, 08:22

I didn't want the logos to be clickable, e.g. no popup. If there is a way to do that I will try it also?
In the block grid, what code can I add to have the name of the company to appear as a popup hint?
Thanks!
G

edit: I found how:
<li><img src="{{path}}Company.jpg" alt="Company" title="Company"></li>
 
User avatar
mjau-mjau
X3 Wizard
Posts: 11794
Joined: 30 Sep 2006, 03:37

Re: Block grid for clients' logos

02 Mar 2019, 09:03

GeoPal wrote:I didn't want the logos to be clickable, e.g. no popup. If there is a way to do that I will try it also?
You can entirely disable click and popup from the page settings > gallery > popup > Disable "images are clickable":
Image

Although it works fine in your custom content grid mode, there are a few potential advantages of using gallery mode:
  • It's easier to apply and add new images, without having to update with custom code.
  • X3 will serve larger size images for high-res devices (eg. retina displays) if your original images are large enough.
  • You would be able to upload non-square images, and simply used the CROP setting to make them square.
  • It would implement the X3 "lazy loader", which will only load images below visible scroll after visitor scrolls down.
  • Captions and tooltips are available.
Not really a huge deal with such a small gallery segment, which you have already implemented well into custom content, but might be good to know!
 
User avatar
GeoPal
Experienced
Topic Author
Posts: 204
Joined: 20 Dec 2007, 12:56

Re: Block grid for clients' logos

02 Mar 2019, 09:43

Yes, great option! I will try it right away :) Thank you!
 
User avatar
GeoPal
Experienced
Topic Author
Posts: 204
Joined: 20 Dec 2007, 12:56

Re: Block grid for clients' logos

02 Mar 2019, 11:47

It id work great, thanks!
Another point in using custom block-grid is being able to have "gallery" inside text. This has been discussed many times. Don't know how this could be implemented, but I hope you consider "somehow" being able to place native X3 galleries inside text for storytelling, etc.
All is working great as it is, just takes some time to fiddle with the code.
Thanks again for the excellent suggestion.
Best, G