13/02/2013, 17:13:19
Si tu n'as pas cette classe (à cause de ta version), voici son code :
Code :
[== Indéfini ==]
//////////
// Get page content from a content block
//////////
function get_page_content($alias,$block = '',$assign = '')
{
$result = false;
$gCms = cmsms();
$contentops = $gCms->GetContentOperations();
$smarty = $gCms->GetSmarty();
if( $block == '' ) $block = 'content_en';
if( $alias != '' ) {
$content = $contentops->LoadContentFromAlias($alias);
if( is_object($content) ) {
$result = $content->GetPropertyValue($block);
}
}
if( $assign != '' ) {
$smarty->assign(trim($assign),$result);
return;
}
return $result;
}