using latest blog entry titles as a news feed
|
2 posts
|
Hi, Im new to frog CMS (its quite nice, easiest CMS ive had the pleasure of skinning. Im trying to display the titles of my latest blog entries in a menu/box on my website. Now i used the code that was already there for the blog after it was created. But i cant seem to get it to replicate the info where i want it. I’ve put it in a snippet to include on certain pages, the code is as follows. <?php foreach( $blog_pages->children(array(‘limit’ => 4, ‘offset’ => 1, ‘order’ => ‘page.created_on DESC’)) as $article ): ?> and the code for my blog page. <?php $last_articles = $this->children(array(‘limit’=>5, ‘order’=>‘page.created_on DESC’)); ?> sidebar <?php $article = $this->find(’/blog/’); ?> <h3>Archives By Month</h3> I read through the forums and found this topic, but i dont get it. it doesnt seem to want to work. http://forum.madebyfrog.com/forum/topic/425 If you need anymore info please ask. Thanks, Phil |
|
180 posts
|
First line
Replace to next one: |
|
2 posts
|
Hi jMas, Thanks for your help. that worked a treat!! its working now and you’ve saved me a lot of banging head on desk. Thank you very much. Phil |