Hi! Guys tell me. I want to display the gallery on the main page, I specify
[[getImageList? &tvname=`resourcealbum` &docid=`351` &tpl=`gallerynewsmuseum3` &randomize=`1`]]
where 351 is the gallery page where all the images are uploaded.
As a result, on the main page, I get this display
On the “gallery” page itself, it is displayed correctly
dejaya
October 20, 2023, 9:02pm
2
Could you share you template, “gallerynewsmuseum3”?
It might be that you call on a field [[*somefield]]
in there which may work on the Gallery page but not on your Main page.
Hello
<div class="single-art-box-style2">
<div class="img-holder">
<img src="[[+image:phpthumbon=`w=338&h=429&zc=1`]]" alt="[[+title]]">
<div class="overlay-content">
<div class="zoom-button">
<a class="lightbox-image" data-fancybox="gallery" href="[[+image]]" title="[[+title]]">
<i class="fa fa-search-plus" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
</div>
dejaya
October 20, 2023, 9:24pm
4
Can you view the source on the page and see what src
is actually being output for your img
tags?
<div class="art-carousel owl-carousel owl-theme owl-nav-style-one">
<div class="single-art-box-style2">
<div class="img-holder">
<img src="/assets/cache_image/noimage_338x429_b9b.jpg" alt="">
<div class="overlay-content">
<div class="zoom-button">
<a class="lightbox-image" data-fancybox="gallery" href="assets/resourceimages/65/8.jpg" title="">
<i class="fa fa-search-plus" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
dejaya
October 20, 2023, 9:39pm
6
So it looks like your placeholder
[[+image]]
works OK but
[[+image:phpthumbon=`w=338&h=429&zc=1`]]
returns /assets/cache_image/noimage_338x429_b9b.jpg
That seems to be a default output for phpthumbon
when the image can’t be found - but I’m not sure why that would be the case when the basic placeholder works OK.
on the “Gallery” page where all the images are. Works
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-12 masonry-item all art insta">
<div class="single-art-box-style2 marbtm50">
<div class="img-holder">
<img src="assets/resourceimages/351/1 (1).jpg" alt="">
<div class="overlay-content">
<div class="zoom-button">
<a class="lightbox-image" data-fancybox="gallery" href="assets/resourceimages/351/1 (1).jpg" title="">
<i class="fa fa-search-plus" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
dejaya
October 20, 2023, 10:03pm
8
It’s getting late here [!] … but I think that would suggest that phpthumbon
is not doing anything at all.
Out of interest - try replacing:
<img src="[[+image:phpthumbon=`w=338&h=429&zc=1`]]" alt="[[+title]]">
with:
<img src="[[+image]]" alt="[[+title]]">
… in your template and see how it looks on both pages.
dejaya
October 20, 2023, 10:07pm
9
Also … your [[+title]]
placeholder isn’t showing anything on either page - can you double-check you MIGX config field names?
dejaya:
MIGX
I’ll check it out. I don’t know what the problem is
I do not know why they are not displayed [[+title]]
specified phpthumon - the image is working
<img src="[[+image:phpthumon=`w=338&h=429&zc=1`]]" alt="[[+pagetitle]]">
I guess, if you spell phpthumbon
wrong (without the b
), the image just gets output directly. But you probably don’t get the correct thumbnail.
What version of MODX are you using? I believe there is a problem with phpThumbOn on MODX 3.
What version of phpThumbOn is installed?
The version on modx.com (1.3.1-pl) is outdated.
There is a newer version (1.3.5-beta2) available on modstore.pro .
Are there any related error messages in the MODX error log?
Maybe try using a different extra for thumbnails instead. For example pThumb :
If you call the snippet “getImageList” without the &tpl
property, a list of all the available placeholders and their values gets output.
[[getImageList? &tvname=`resourcealbum` &docid=`351`]]
Is “title” in this list of placeholders?
1 Like
hello
phpThumbOn - modstore.pro
[[getImageList? &tvname=`resourcealbum` &docid=`351` &tpl=`gallerynewsmuseum3` &randomize=`1` ]]
<div class="single-art-box-style2">
<div class="img-holder">
<img src="[[+image:phpThumbOn=`w=338&h=429&zc=1`]]" alt="[[+title]]">
<div class="overlay-content">
<div class="zoom-button">
<a class="lightbox-image" data-fancybox="gallery" href="[[+image]]">
<i class="fa fa-search-plus" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
</div>
pThumb - same result.
there are no errors.
in the page code
<div class="art-carousel owl-carousel owl-theme owl-nav-style-one">
<div class="single-art-box-style2">
<div class="img-holder">
<img src="/assets/cache_image/noimage_338x429_b9b.jpg" alt="">
<div class="overlay-content">
<div class="zoom-button">
<a class="lightbox-image" data-fancybox="gallery" href="assets/resourceimages/65/P1010007.jpg">
<i class="fa fa-search-plus" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
assets/resourceimages/351/1 (1).jpg
Probably should not use spaces and () in file names… Try without that.
1 Like
it looks like you’re right
Please tell my wife this…
3 Likes
thank you all for your help
1 Like