Silverstripe Version:
I have on HomePage 3 lastest articles (type: Development) from Sections but I want show only that those are “ShowInSection” (which is checkbox in admin)
Details of your query go here
class HomePage_Controller extends PageController {
public function LatestArticles($count = 3)
{
return Development::get()
->sort('Created', 'DESC')
->limit($count);
}
}