staticpage_translate->where('static_page_id','=',$record->id)->and_where('language_id','=','fr')->find(); // If there isnt a translated page, show the default language // @todo - default language should come from configuration if (! $translate->loaded()) $translate = $record->staticpage_translate->where('static_page_id','=',$record->id)->and_where('language_id','=','en')->find(); ?>
|