![]() |
|
zpArdoise: Only last news in frontpage as text - 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: zpArdoise: Only last news in frontpage as text (/thread-10759.html) |
zpArdoise: Only last news in frontpage as text - kalli - 2013-01-20 Hi all. Thanks in advance edit: zpArdoise: Only last news in frontpage as text - fretzl - 2013-01-21 Use `` in [i]codeblock 1[/i] of your unpublished page. Quote:Can I create within ZP online when I edit the page? zpArdoise: Only last news in frontpage as text - acrylian - 2013-01-21 I did modify the the title as it more or less addresses a 3rd party theme. Regarding the news you can use the latestnews function but you could also use the next_news loop. But in any case you should read the theming tutorial first to learn the basics of Zenphoto theming. zpArdoise: Only last news in frontpage as text - kalli - 2013-01-21 I got it. zpArdoise: Only last news in frontpage as text - fretzl - 2013-01-22 Quote:...whether the online also go directly to the page zpArdoise: Only last news in frontpage as text - kalli - 2013-01-22 hello fretzl, zpArdoise: Only last news in frontpage as text - kalli - 2013-01-22 Hi at all. zpArdoise: Only last news in frontpage as text - acrylian - 2013-01-22 No, latest new is always by published date as in a blog. You would have to code this using the object model. zpArdoise: Only last news in frontpage as text - kalli - 2013-02-01 Hello acrylian, zpArdoise: Only last news in frontpage as text - acrylian - 2013-02-01 Yes, you can use any kind of php within a code block. But the theme must have a call for a code block in that place. zpArdoise: Only last news in frontpage as text - kalli - 2013-02-02 thank you very much, zpArdoise: Only last news in frontpage as text - acrylian - 2013-02-03 Or you just use the print/getLatestNews() functions as mentioned above. Then you don't need to work with the object model directly. zpArdoise: Only last news in frontpage as text - kalli - 2013-02-03 would you please be more specific? zpArdoise: Only last news in frontpage as text - acrylian - 2013-02-04 print/getLatestNews as the news loop is always sorted by (publish) date descending only. So getLatestNews(1) will get the latest, newest article. zpArdoise: Only last news in frontpage as text - kalli - 2013-02-04 Hello acrylian, 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? zpArdoise: Only last news in frontpage as text - acrylian - 2013-02-04 I have no idea what the "validity date" is, but if you mean the "expiration date", no. zpArdoise: Only last news in frontpage as text - kalli - 2013-02-04 yes, i mean the expiration date. zpArdoise: Only last news in frontpage as text - acrylian - 2013-02-04 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!). |