ZenphotoCMS Forum
latest topics for zenpage - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: latest topics for zenpage (/thread-5084.html)



latest topics for zenpage - quaker - 23-04-2009

I had a friend create this .. took him like 5mins to do it.

very simple...... he said.. LMAO..

Demo:http://256studio.com on sidebar..
Q

Latest News

[list]




latest topics for zenpage - quaker - 23-04-2009

to get more listed please change the 5 to what every number you need.
from:
DESC LIMIT 5';
to:
DESC LIMIT 10';

Q




latest topics for zenpage - acrylian - 24-04-2009

And why didn't you just use the functions that are already there??

[list=1]
[]http://www.zenphoto.org/documentation/plugins/zenpage/_plugins---zenpage-template-functions.php.html#functiongetLatestNews
[
]http://www.zenphoto.org/documentation/plugins/zenpage/_plugins---zenpage-template-functions.php.html#functionprintLatestNews
[*]http://www.zenphoto.org/documentation/plugins/zenpage/_plugins---zenpage-functions.php.html#functiongetNewsArticles
[/list]




latest topics for zenpage - quaker - 24-04-2009

i had a friend look at the docs and he did it that way..
if there is a cleaner way could someone post the code?

Q




latest topics for zenpage - acrylian - 24-04-2009

That's what I did above...




latest topics for zenpage - quaker - 24-04-2009

Why, When you echo getLatestNews() you end up with Array

Then if you use implode on it you get Array times 5?

What is the correct way to use this function?




latest topics for zenpage - acrylian - 24-04-2009

Because that function returns an multidimensional array. You need to use a forech loop and call the field to be echoed like in the example you posted above. Why don't you use printLatestNews()? That even prints a list as all the other functions in the sidebar.