Views: 9489
Last Modified: 12.09.2014
  • Set the HTML attribute id for a block tag:
    <div id="<?=$this->GetEditAreaID("area_identifier")?>">
    	<!-- block contents -->
    </div>
  • Determine context menu buttons in compote_epilog.php using the method:
        $APPLICATION->SetEditArea($areaId, $arIcons);

    where:

    • $areaId is an area identifier with the context menu;
    • $arIcons is an array of context menu icons.
  • The method adds a button that opens the indicated URL in a pop-up window:
    $this->AddEditAction(
    	"Area_identifie",
    	"URL of the page to be opened in a pop-up window",
    	"Name of the button in the toolbar",
    	Array(
    		"WINDOW" => array("wight"=>780, "height"=>500),
    		"ICON" => "bx-content-toolbar-edit-icon",
    		"SRC" => "/bitrix/images/myicon.gif"
    	)
    );
  • The method adds the button that deletes an element:
    $this->AddDeleteAction(
    	"Area_identifier",
    	"URL of the page deleting the specified element",
    	"Name of the button",
    	Array(
    		"CONFIRM" => "Do you really want to delete this element?",
    
    	)
    );


Courses developed by Bitrix24