![]() |
Alexey admin 11/9/2006 |
Frank,
global $smarty; if(... master record is closed...) $smarty->assign("allow_add",false); else $smarty->assign("allow_add",true);
|
F
|
frocco author 11/9/2006 |
Thank you, Frank, here is what you can do.
|
F
|
frocco author 11/13/2006 |
Is this not possible on the master page. Thank you, It works great on the child list. I need to do the same on the master list. However, there is no event before a row is written or after a row is written. How can I do this? Frank |
![]() |
Alexey admin 11/14/2006 |
Frank, {if $row.1editable} ... {/if}
$rowinfo[]=$row;
if(...closed ?...) $row["1editable"] = false; else $row["1editable"] = true;
|
F
|
frocco author 11/14/2006 |
Thanks for the help. Frank, you can do this the similar way. At first enclose add these expressions before and after the Edit link in Visual Editor: Build the pages. Open generated ..._list.php file with a text editor Find this line there: and insert this code just before it: use $data["Fieldname"] expressions to access field values there. |