How to make both appear on edit mode?
Permalink
Hey guys. I have code below:
The top one only can be view by guess and the bottom only for registered user.
But how to make both appear on the edit mode?
Thanks!
<? $u = new User(); if ((!$u->isRegistered()) || $c->isEditMode()) { ?> <td width="218" valign="top"> <? $a = new Area('Home - Guess - Product 01 '); $a->display($c); ?> </td> <? } else { ?> <td width="218" valign="top"> <? $a = new Area('Home - Member - Product 01 '); $a->display($c); ?> </td> <? } ?>
The top one only can be view by guess and the bottom only for registered user.
But how to make both appear on the edit mode?
Thanks!
I've just wrapped the whole lot in an isEditMode() if test
Hope that helps