Thank you for the answer @samus-aran, I copied the file from legacy/modules/Accounts/metadata/detailviewdefs.php
and put it into my local folder custom/modules/Accounts/metadata/detailviewdefs.php
and I added a simple alert
button, that was copied from the forum here Add button to Detail View of Module. Afterward the files got copied to public/legacy/custom
(I am using Docker, but I checked and the file is definitely there, see screenshot).
Then, I did the “Quick repair and repair” and went to a random account’s detail, but I don’t see any new button in the actions
Is there something I am missing ?
Bellow is the added button section in detailviedefs.php
3 => 'FIND_DUPLICATES',
4 => array (
'customCode' => '<input type="submit" class="button" title="genFile" onclick="alert(\'Bean ID: \' + \'{$bean->id}\');" name="genFile" value="genFile" />',
'sugar_html' =>
array (
'type' => 'submit',
'value' => 'genFile',
'htmlOptions' =>
array (
'class' => 'button',
'id' => 'genFile_button',
'title' => 'genFile',
'onclick' => 'alert(\'Bean ID: \' + \'{$bean->id}\');',
'name' => 'genFile',
),
),
),
'AOS_GENLET' =>
And if interested, this is how/where the local custom folder is copied in Docker
COPY custom/ /var/www/html/public/legacy/custom/