Can you add a parameter on every front module file to enable or not the result pagelayout value? $Result['pagelayout'] = false;