class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting {
protected $_settings = [
'disable_core_css' => CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
+ 'defaultExternUrl' => CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
'userFrameworkResourceURL' => CRM_Core_BAO_Setting::URL_PREFERENCES_NAME,
'imageUploadURL' => CRM_Core_BAO_Setting::URL_PREFERENCES_NAME,
'customCSSURL' => CRM_Core_BAO_Setting::URL_PREFERENCES_NAME,
'description' => NULL,
'help_text' => NULL,
],
+ 'defaultExternUrl' => [
+ 'group_name' => 'CiviCRM Preferences',
+ 'group' => 'core',
+ 'name' => 'defaultExternUrl',
+ 'type' => 'String',
+ 'quick_form_type' => 'Select',
+ 'html_type' => 'Select',
+ 'html_attributes' => [
+ 'class' => 'crm-select2',
+ ],
+ 'default' => 'router',
+ 'add' => '5.27',
+ 'title' => ts('Extern URL Style'),
+ 'is_domain' => 1,
+ 'is_contact' => 0,
+ 'help_text' => NULL,
+ 'options' => [
+ 'standalone' => ts('Prefer standalone scripts'),
+ 'router' => ts('Prefer normal router'),
+ ],
+ ],
'activity_assignee_notification' => [
'group_name' => 'CiviCRM Preferences',
'group' => 'core',
<p>{ts}You can modify the look and feel of CiviCRM by adding your own stylesheet. For small to medium sized modifications, use your css file to override some of the styles in civicrm.css. Or if you need to make drastic changes, you can choose to disable civicrm.css completely.{/ts}</p>
{/htxt}
+{htxt id='id-defaultExternUrl'}
+<p>{ts}CiviCRM generates callback URLs for external services.{/ts}</p>
+<p>{ts}Some callback URLs are being migrated to a different style. During the transition, you may indicate a preferred style, such as:{/ts}</p>
+<ul>
+ <li>{ts}"Standalone Scripts" - In the traditional style, each callback URL is a standalone PHP script. You may wish to use this style if you need to maximize performance or if you need continuity.{/ts}</li>
+ <li>{ts}"Router" - In the newer style, each callback URL is defined like a normal CiviCRM page. You may wish to use this style for greater consistency or portability.{/ts}</li>
+</ul>
+<p>{ts}This setting only affects the default URL produced by "civicrm-core". Extensions and add-ons may override specific URLs.{/ts}</p>
+{/htxt}
+
{htxt id='id-url_vars'}
{ts}URL Variables{/ts}
<table>
<p class="description font-red">{ts}{$verifySSL_description}{/ts}</p>
</td>
</tr>
+ <tr class="crm-url-form-block-defaultExternUrl">
+ <td class="label">
+ {$form.defaultExternUrl.label} {help id='id-defaultExternUrl'}
+ </td>
+ <td>
+ {$form.defaultExternUrl.html}
+ </td>
+ </tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>