Posted: Fri 18. May 2007, 12:42
implemented. If you want to use it right now change content.func.inc.php
around line 320 enhance it like this:
Then add at the end - direct before closing ?>
That's all.
Oliver
around line 320 enhance it like this:
Code: Select all
// -------------------------------------------------------------
$content['list_mode'] = true; //SET LIST MODE ALWAYS TRUE!
if($aktion[4]==1 && $aktion[1]) {
// render page based on article
include_once(PHPWCMS_ROOT."/include/inc_front/content.article.inc.php");
$content['list_mode'] = false; //OK, NO LIST MODE article detail will be rendered
} elseif(!empty($content['struct'][$content['cat_id']]['acat_pagetitle'])) {
Code: Select all
// check layout for list mode sections or detail view
if(strpos($content['all'], '_LIST_MODE')) {
$content['all'] = replace_tmpl_section( ($content['list_mode'] ? 'ELSE_LIST_MODE' : 'IF_LIST_MODE') , $content['all']);
$content['all'] = str_replace(array('<!--ELSE_LIST_MODE_START//-->', '<!--ELSE_LIST_MODE_END//-->', '<!--IF_LIST_MODE_START//-->', '<!--IF_LIST_MODE_END//-->'), '', $content['all']);
}
Oliver