HowToImplementFlipMenu
<a class='flip' href="ja
$smarty->assign_by_ref('bsag_boxstate',$bsagBoxCook);
Inside our .tpl we can now reference this Value.
<div class="box"> <div class="box-title"><a class='flip' href="javascript:toggle('bsagBoxCook');">{tr}BSAG{/tr}</a></div> {if $bsag_boxstate eq 'o'} <div class="box-data" id='bsagBoxCook' style="display:block;"> {else} <div class="box-data" id='bsagBoxCook' style="display:none;"> {/if} {$data} <div class="copyright" align="center">copyright by BSAG :)</div> </div> </div>
( I was informed that the usage of center / font isn't xhtml compliant, but I'm not an XHTML Guru, so perhaps someone could fix the above lines if he strays around here. )
(Why isn't it possible to do linebreaks in Boxes. grr, so easy 😊
I fixed it in plugin code. nice contribution, I'll have to try that 😊 — mose
So this way, the Box always remembers its state. Nice isn't it ? 😊
Maddi
, 23. Aug, 2003
Bremen, Germany