Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Change date of picture in gallery

01 Nov 2022, 12:55

Hi!


i uploaded a new image to a gallery where i have the sort on date. But the image is only shown in third position instead of first. The newest date should be listed at the top. 


The third one in the screenshot is the newest, but on third place. Which date is used for sorting? The upload date? 

When im use the custom sort, and put the picture on top, it doesn't change on the page. 

Thanks!
Attachments
2022-11-01 17_51_42-X3 Panel.png
2022-11-01 17_51_42-X3 Panel.png (198.01 KiB) Viewed 11807 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Change date of picture in gallery

02 Nov 2022, 01:54

I need to see a link to understand the settings and context of your page, as there are many things to consider:
  • Date from camera (EXIF) is prioritized, as long as EXIF is enabled.
  • The panel is live-sorting, and might not always reflect the true (and correct) sorting of the X3 frontend.
  • If you have already dragged items into order on the page, you have then reverted to CUSTOM sort order on that page. How do you expect X3 to know that "new dates" should be listed above other items that you have dragged into position? As soon as you use custom sorting, this will take precedence over any date order.
Dane wrote:The newest date should be listed at the top.
It probably should, from the panel when selecting to sort by date yes.
Dane wrote:Which date is used for sorting? The upload date?
IPTC camera date if set, else upload date (server creation time). At lea
Dane wrote:When im use the custom sort, and put the picture on top, it doesn't change on the page.
Did you click SAVE after sorting? Are you sure you have SORT set to custom? As soon as you change to custom sort, date sort for new uploads will be irrelevant ... It can't guess how to combine custom sorting with date sorting.
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: Change date of picture in gallery

02 Nov 2022, 03:14

I clicked Save. I just tried it again with the custom sorting. The view with the panel and the page are different. 
mjau-mjau wrote:[*]The panel is live-sorting, and might not always reflect the true (and correct) sorting of the X3 frontend


[*]
Maybe that just applies that it just doesn't show the correct and true sorting in the frontend?
Attachments
2022-11-02 08_10_28-Window.png
2022-11-02 08_10_28-Window.png (598.04 KiB) Viewed 11802 times
2022-11-02 08_09_55-Window.png
2022-11-02 08_09_55-Window.png (64.17 KiB) Viewed 11802 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Change date of picture in gallery

02 Nov 2022, 03:29

Dane wrote:Maybe that just applies that it just doesn't show the correct and true sorting in the frontend?
Yes it could very well be so. The sort options are created for the frontend, and will resolve from all settings. The panel has "live" javascript sorting, and may not represent exactly how it's sorted in the frontend. Exactly why, I would need to diagnose.
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: Change date of picture in gallery

02 Nov 2022, 03:49

I send you a PM with the login, so you can take a look on it. Thank you!

For a brief explanation, one more thing. I have several categories in my gallery where I upload my images first, and add a title and description. When I have done that, I copy the image to the index folder. So that on the home page always my latest shots are listed. By the way, in my "landscapes" gallery, the new photo is shown first. 
Attachments
2022-11-02 08_47_54-Window.jpg
2022-11-02 08_47_54-Window.jpg (267.3 KiB) Viewed 11797 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Change date of picture in gallery

02 Nov 2022, 06:11

According to my view, the custom sort is the same in the panel as on the website:
Image
Image

I also checked astrofotografie, and this gallery is set to sort by DATE.

Where can I look for something that is wrong?
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: Change date of picture in gallery

02 Nov 2022, 06:16

Yes, there everything should work finde. But take a look in the index page, where i copy the newest pictures, so that they listed on the startpage.
2022-11-02 11_14_47-Change date of picture in gallery.jpg
2022-11-02 11_14_47-Change date of picture in gallery.jpg (43.15 KiB) Viewed 11792 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Change date of picture in gallery

02 Nov 2022, 10:18

Dane wrote:But take a look in the index page, where i copy the newest pictures, so that they listed on the startpage.
On your INDEX page, you have set sorting to DATE (not custom). Therefore, images on the frontend are correctly sorted by date, and when you compare date-sorting in the panel with the date-sorting on the page, they are the same.

In your screenshot, you have selected CUSTOM sort view in the panel, but this does not SET the sort method for the frontend, which is assigned from page settings > Gallery > "Sort images by".
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: Change date of picture in gallery

02 Nov 2022, 10:58

All right, I understand the situation now. Basically it was set up correctly, only it didn't sort the way I thought it would. I just changed it to the custom sort, and now it displays the way I initially wanted it to. 

This is the newest image, and it is now displayed at the top of my startpage. 
2022-11-02 15_50_50-Linsenschuss.de - Fotografie von Dane Vetter.jpg
2022-11-02 15_50_50-Linsenschuss.de - Fotografie von Dane Vetter.jpg (127.83 KiB) Viewed 11788 times
But actually this is the newest photo, and should be listed on top when "sorting by date" is set. I find that strange that it doesent work properly with sorting by date. 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Change date of picture in gallery

02 Nov 2022, 12:49

Dane wrote:But actually this is the newest photo, and should be listed on top when "sorting by date" is set.
Are you sure it's the newest photo? I checked two images from that folder:

This is the one you say is the newest, with EXIF DateTimeOriginal 2022-07-24 16:04:01 +0000.
https://jimpl.com/results/Eo4C9YPW4Rhzp ... arget=exif

This is the 2nd photo in the same dir, with EXIF DateTimeOriginal 2022-08-02 22:07:43 +0000. This image is definitely newer than the one above, according to the EXIF data stored in your images. This image is from August, while the above is from July.
https://jimpl.com/results/DTufgfzYczRrZ ... arget=exif
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: Change date of picture in gallery

02 Nov 2022, 13:21

Okay, I get it now. It was probably a misunderstanding. The function with sorting by date works perfectly. And it's via the EXIF data, and that's where we might need to define it, so we don't get it wrong. 

On my page you don't see a date for the photos, at least I don't want to show that. This has to do with the fact that my photos are not bound to a time. For me, a new photo means from when I publish it. I currently still have photos from a trip in 2019, which I still have to edit. If I upload a photo from the year 2019 then, it is for me the newest photo which I publish, and should accordingly also be listed at the top. 

Here we come to the topic - Sort by creation date from the exifs. And sort by date of upload. 

For me, the date of uploading/publishing is interesting. I can imagine that there are other photographers who simply have timeless images. Regarding the shot date. Maybe adding upload date in the sort selection would be an option for the future? 

But I guess the custom sort function indirectly provides such a function, and just shows the freshly uploaded photos on top?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Change date of picture in gallery

02 Nov 2022, 13:49

Dane wrote:For me, a new photo means from when I publish it. I currently still have photos from a trip in 2019, which I still have to edit. If I upload a photo from the year 2019 then, it is for me the newest photo which I publish, and should accordingly also be listed at the top.
Understood. But X3 will always prioritize EXIF date (camera date taken) when sorting by DATE, as this does make sense for most users. If you want to override this, you would have to do one of the following:
  • Strip image EXIF data on upload or before upload.
  • Or just use custom sort, as new images will arrive on top anyway, after any initial sort.
Dane wrote:For me, the date of uploading/publishing is interesting. I can imagine that there are other photographers who simply have timeless images. Regarding the shot date. Maybe adding upload date in the sort selection would be an option for the future?
Sure, but what happens if you upload multiple images? You would have no concept of order for these images between themselves, as they would have the same upload date or random millisecond differences. Maintaining sort order for "upload date" would require uploading one image at a time.
Dane wrote:But I guess the custom sort function indirectly provides such a function, and just shows the freshly uploaded photos on top?
Exactly.
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: Change date of picture in gallery

02 Nov 2022, 13:52

Thanks Karl. So I will stay on the custom sort, and all should be well. Sorry for the misunderstanding. 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Change date of picture in gallery

02 Nov 2022, 23:40

Dane wrote: Thanks Karl. So I will stay on the custom sort, and all should be well. Sorry for the misunderstanding. 
Never a problem, glad to help clarify.