__(MyContainerTitle)__

This is an example of a section to show the list of latest 5 articles (container with type "blogpost"), that contains the keyword "mykeyword"...

Latest Blog posts

loadLangs(array("main")); $websitepage = new WebsitePage($db); $fuser = new User($db); $arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', 5, 0, array('type_container'=>'blogpost', 'keywords'=>$keyword)); if (is_numeric($arrayofblogs) && $arrayofblogs < 0) { print '
'.$weblangs->trans($websitepage->error).'
'; } elseif (is_array($arrayofblogs) && ! empty($arrayofblogs)) { foreach($arrayofblogs as $blog) { print ''; } } else { print '
'; print '
'; print $weblangs->trans("NoArticlesFoundForTheKeyword", $keyword); print '
'; print '
'; } ?>