How can I make a news article stick to the top of the home page? My goal is to have a welcome message followed by news posts for each event (album) shown on the home page.
I got the news to show on the first page and then I post news about each event with a link to their albums. I don't really care what method the block of text welcoming people uses just tell me where I need to put what code.
Just place something like `<?php printPageContent(); ?>`(with the options mentioned on the link above) where you want to appear it on your theme's index.php. Where exactly of course depends on your theme's layout.
Comments
If you really want to call a specific news articles you would have to use the Zenpage class methods:
`$newsarticle = $current_zenpage->getNewsArticle();`
http://zenpage-functions.maltem.de/zenpage/Zenpage.html#methodgetNewsArticle
That returns an array of the news article called you then can print as you like with for example: `echo $newsarticle['content']`etc.
NOTE: The next version of Zenpage will be slightly reworked regarding the class setup so it this setup will change a little.
I got the news to show on the first page and then I post news about each event with a link to their albums. I don't really care what method the block of text welcoming people uses just tell me where I need to put what code.
Thanks
AMDbuilder
If you have problems to understand the functions guide please read:
http://www.zenphoto.org/2008/04/how-to-read-the-zenphoto-functions-guide/
More info about Zenphoto theming here:
http://www.zenphoto.org/2008/05/theming-tutorial/
and some more specific details for Zenpage here:
http://zenpage.maltem.de/pages/Theming-tutorial