Pages (2):    1 2
Member
Member
kalli   02-02-2013, 22:40
#11

thank you very much,
the theme zpAdroise have the call for codeblock1 in that place.
I`ll try to get the object running.

Administrator
Administrator
acrylian   03-02-2013, 10:49
#12

Or you just use the print/getLatestNews() functions as mentioned above. Then you don't need to work with the object model directly.

Member
Member
kalli   03-02-2013, 23:15
#13

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.

Administrator
Administrator
acrylian   04-02-2013, 11:13
#14

print/getLatestNews as the news loop is always sorted by (publish) date descending only. So getLatestNews(1) will get the latest, newest article.

Member
Member
kalli   04-02-2013, 16:58
#15

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?

Administrator
Administrator
acrylian   04-02-2013, 17:05
#16

I have no idea what the "validity date" is, but if you mean the "expiration date", no.

Member
Member
kalli   04-02-2013, 20:46
#17

yes, i mean the expiration date.
online translation is not soo good.

Administrator
Administrator
acrylian   04-02-2013, 21:42
#18

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!).

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.