![]() |
|
ZenPage Combinews group by publish date - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: ZenPage Combinews group by publish date (/thread-9617.html) |
ZenPage Combinews group by publish date - tunafish - 2012-02-10 What I would like with the Combinews feature is group images by their publish date rather than the creation date. I have the combinews feature enabled with the "Latest images by album: thumbnail" option. ZenPage Combinews group by publish date - acrylian - 2012-02-11 Combinews uses the value that is stored in the "date" column of the image db entry. What date is stored there depends on meta data import. It would be possible to sort by publish date but that does not exist. Of course then all images would have to have a publish date otherwise the results would be unexpected as well. You could open a ticket and then this probably can go into 1.4.3. (As noted id and mime don't and can't really work directly as articles by definition are sorted by date only (maybe this sort orders should even be removed with 1.4.3...).) ZenPage Combinews group by publish date - tunafish - 2012-02-11 Pitty I'll have to modify the ZenPage plugin.. Ok I'll try out opening a ticket. Any tips welcome. Especially as in to about where I can change the creation date to publish date.. ZenPage Combinews group by publish date - acrylian - 2012-02-11 Yes, you would have to modify the plugin indeed. A ticket will put this as an option on the list for 1.4.3. That is quite some time though as that is schedule in a few months. f you really need this now look at the zenpage-class.php and getCombiNews(). This contains the db queries. Yes for setting the publish date you need to create a filter. You need to read and understand the object model of Zenphoto first. (the publish date is actually meant to be used for scheduled publishing). Sidenote, generally the ID is the order of discovery from the filesystem. So that roughly equals the publish order (unless you unpublished new items by default naturally). ZenPage Combinews group by publish date - tunafish - 2012-02-11 OK, Ill give it a try. I wanted to use ZP also to archive my old photo's, so I can "publish" photo's on the day I'll upload them and the "(creation) date" becomes secondary. ZenPage Combinews group by publish date - tunafish - 2012-02-11 acrylian, I tried your tip and changed the query from The resulting array from I am kinda stuck here.. ZenPage Combinews group by publish date - acrylian - 2012-02-11 The combinews function uses a UNION query so you need only to change the image one for the right option. If images have no publish date it might get unexpected results. There might need to be other place that need changes Sorry, I don't know that offhand and have also no time right now to dig into this in-between. Please create ticket and I will look into it for 1.4.3. ZenPage Combinews group by publish date - tunafish - 2012-02-11 OK I found it :-) |