Answer the question
In order to leave comments, you need to log in
How to embed a local application in the context menu of a Bitrix24 task?
Downloaded an example embeddable application - Sample . Installed, tried, the application got up in the menu on the left. That is, PLACEMENT = DEFAULT.
I can not understand and figure out how to place this application in - TASK_LIST_CONTEXT_MENU.
Here is the install.php code:
<?php
require_once(__DIR__.'/up_lib/up_lib.php');
require_once(__DIR__.'/crest/crest.php');
$result = CRest::installApp();
CRest::setLog(['REQUEST' => $_REQUEST], 'installation');
$test = CRest::call(
'placement.bind',
[
'PLACEMENT' => 'TASK_VIEW_TAB',
'HANDLER' => $handlerBackUrl,
'TITLE' => 'Public embedded form',
'DESCRIPTION' => 'Example of embedded UI',
]
);
CRest::setLog(['contacts' => $test], 'installation');
if($result['rest_only'] === false):?>
<head>
<script src="//api.bitrix24.com/api/v1/"></script>
<?php if($result['install'] == true):?>
<script>
BX24.init(function(){
BX24.installFinish();
});
</script>
<?php endif;?>
</head>
<body>
<?php if($result['install'] == true):?>
installation has been finished
<?php else:?>
installation error
<?php endif;?>
</body>
<?php endif;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question