Hiding Links/ Buttons in groups

Tips submitted by PHPMaker users
Post Reply
Niijimasama
User
Posts: 85

Hiding Links/ Buttons in groups

Post by Niijimasama »

If you have grouped your links as buttons, the following will help you to hide the individual links.
Place the code in the ListOptions_load

//HIDE VIEW BUTTON
$item = $this->ListOptions->Items["view"];
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
$item->Visible = FALSE;
//HIDE VIEW BUTTON
$item = $this->ListOptions->Items["copy"];
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
$item->Visible = FALSE;
//HIDE EDIT BUTTON
$item = $this->ListOptions->Items["edit"];
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
$item->Visible = FALSE;


Post Reply