'object', 'subtype' => $type, 'limit' => 1)); if($contents){ foreach($contents as $c){ $area1 .= elgg_view('page_elements/elgg_content',array('body' => $c->description)); } }else{ $area1 .= elgg_view('page_elements/elgg_content',array('body' => elgg_echo("sitepages:notset"))); } // Display through the correct canvas area $body = elgg_view_layout("one_column_with_sidebar", "", $area1); // Display page page_draw($title,$body);