block inside block
Permalink
hi all,
i make some trick for add nav appear in slideshow,
but i not sure this is the right aprroach
yes. this is the dirty trick, thats why i post here if there is another option from the c5 expert. just to share..
this is not urgent
thanks all, c5 :)
i make some trick for add nav appear in slideshow,
but i not sure this is the right aprroach
// element/header.php $a = new Area('Header Nav'); ob_start(); $a->display($c); $printed = ob_get_contents(); ob_end_clean(); define('MAIN_MENU', $printed); $_SESSION['header_trap'] = 'only_header';
// block/slideshow/view.php
// add block in $ah = new Area('Header');
<div id="ccm-SlideshowBlock-display<?php echo intval($bID)?>">
<?php
if(isset($_SESSION['header_trap']) == 'only_header'){
?>
<div id="headerNav">
<?php echo MAIN_MENU; ?>
</div>
<div id="ccm-SlideshowBlock heightSetter<?php echo intval($bID)?>"></div>
<div class="ccm-SlideshowBlock-clear" ></div>
</div>yes. this is the dirty trick, thats why i post here if there is another option from the c5 expert. just to share..
this is not urgent
thanks all, c5 :)