![]() |
|
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 - 20-01-2013 Hi all. Thanks in advance edit: zpArdoise: Only last news in frontpage as text - fretzl - 21-01-2013 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 - 21-01-2013 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 - 21-01-2013 I got it. zpArdoise: Only last news in frontpage as text - fretzl - 22-01-2013 Quote:...whether the online also go directly to the page zpArdoise: Only last news in frontpage as text - kalli - 22-01-2013 hello fretzl, zpArdoise: Only last news in frontpage as text - kalli - 22-01-2013 Hi at all. zpArdoise: Only last news in frontpage as text - acrylian - 22-01-2013 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 - 01-02-2013 Hello acrylian, zpArdoise: Only last news in frontpage as text - acrylian - 01-02-2013 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 - 02-02-2013 thank you very much, zpArdoise: Only last news in frontpage as text - acrylian - 03-02-2013 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 - 03-02-2013 would you please be more specific? zpArdoise: Only last news in frontpage as text - acrylian - 04-02-2013 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 - 04-02-2013 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 - 04-02-2013 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 - 04-02-2013 yes, i mean the expiration date. zpArdoise: Only last news in frontpage as text - acrylian - 04-02-2013 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!). |