Menu
SuiteCRM dedicated support by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Custom code has removed after repair from from admin panel

Custom code has removed after repair from from admin panel 2 months 1 week ago #70374

  • usman25
  • usman25's Avatar
  • Offline
  • Junior Member
  • Posts: 29
  • Karma: 0
i have write a custom code in following file to show a button on detail page. when i Quick Repair and Rebuild, the custom code removed automatically. why this is happining.
custom\modules\Contacts\metadata\detailviewdefs.php

The custom code for button is
array(
'customCode' => '<input name="print_selected_sec" title="Print Card" type="button" class="button" value="Print Card" id="print_selected_sec" />',
)

Button on detail page
Last Edit: 2 months 1 week ago by usman25.
The administrator has disabled public write access.

Custom code has removed after repair from from admin panel 1 month 4 weeks ago #70853

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7883
  • Thank you received: 1221
  • Karma: 286
You should be doing it with the Extension mechanism under custom/Extension

See an example here

community.sugarcrm.com/thread/21257

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
Time to create page: 0.046 seconds
Powered by Kunena Forum