Sites on local installation
Note: this method is relevant for Bitrix24 Self-hosted edition.
Attention! It's impossible to publish Sites both locally and externally.
By default, Sites receives list of blocks and templates from repository and publish sites on the cloud domain ***.bitrix24.site. To successfully work on a local installation, the following is required:
In bitrix\php_interface\dbconn.php
Set constant for getting blocks and templates locally.
define("LANDING_DISABLE_CLOUD", true);
Inside bitrix\php_interface\init.php
Add code for publishing site locally. When file is unavailable - create it.
class LandingSiteController { public static function isDomainExists($domain) { return false; } public static function addDomain($domain, $url, $active = 'Y') { // } public static function addRandomDomain($url) { if (\Bitrix\Landing\Manager::getZone() == 'de') { return strtolower(randString(10)) . '.bitrix24site.de'; } else { return strtolower(randString(10)) . '.bitrix24.site'; } } public static function updateDomain($domain, $newName) { // } public static function activateDomain($domain, $active = 'Y') { // } public static function deleteDomain($domain) { // } }
© «Bitrix24», 2001-2024