Skip to content

Instantly share code, notes, and snippets.

@jpdevries
Last active December 11, 2015 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpdevries/4579637 to your computer and use it in GitHub Desktop.
Save jpdevries/4579637 to your computer and use it in GitHub Desktop.
MODX Revolution PHP Snippet to return site_start context setting of b.com context
<?php
// assumes there is a site_url context_setting for b.com with a value such as http://b.com/
$setting = $modx->getObject('modContextSetting', array(
'context_key' => 'b.com',
'key' => 'site_url',
));
return $setting->get('value');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment