would you please be more specific?
when I print / getLatestNews () functions use, but then the article appears only with the last ID number.
The indicator that I need is the validity date with the shortest.
I could also use sitcky, but then I'd always the product "push up" manually.
Hello acrylian,
I previously implemented:
string printLatestNews ([int $ number = 1], [string $ option = 'none'], [string $ category =''], [bool $ showdate = true], [bool $ show content = true], [int $ contentlength = 70], [bool $ showcat = true], [string $ readmore = NULL], [bool $ sticky = true])
as it is described in the documentation.
here there is no possibility to sort the news according to their validity date. I see that right?
Ok, for the next time try setting Zenphoto's backend to the English original language to avoid such misunderstandings.
Fir the expiration date you can of course use queries like you did. But the big drawback is those will bypass any inherited publish or protection status of items (an unpublished/unprotected album within an protected one is also protected but that is not noted in the db of that item!).