![]() |
|
print latest news content in ZP 1.4 - 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: print latest news content in ZP 1.4 (/thread-8045.html) |
print latest news content in ZP 1.4 - frankm - 2011-01-05 hi, i just upgraded to the latest 1.4 version of zenphoto. i am trying to get the content of the latest news. i used to be able to get it by calling the solution i found is to call cheers, print latest news content in ZP 1.4 - sbillard - 2011-01-05 What you did is the correct method. All of Zenpage is now object oriented. There is no array of the result. Not at all sure what is objectionable to you of creating the object. That would have to be done in any case. This is how printLatestNews does deal with it, for instance. The whole point of object models is to provide a means of abstracting the underlaying implementations such as the object storage. Of course if you would rather deal with an array, just make a wrapper function that gets the objects and then creates the array. print latest news content in ZP 1.4 - frankm - 2011-01-05 fair enough. i'll go with it. thanks for the answer. print latest news content in ZP 1.4 - acrylian - 2011-01-05 Actually the object way is much more flexiblie. You or anyone else can now create your own very custom latest news function to include all other fields as well. That would be quite complictated with the old array way. |