Skip to content

Commit

Permalink
Build package
Browse files Browse the repository at this point in the history
  • Loading branch information
hugopeek committed Dec 19, 2017
1 parent 91a59e3 commit ac30c15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions _build/resolvers/setresourceids.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
//$assetsPath = $modx->getOption('assets_path');

if (!function_exists('setResourceID')) {
function setResourceID($systemSetting, $contextKey, $alias)
function setResourceID($systemSetting, $contextKey, $alias, $modx)
{
global $modx;
//global $modx;

// Get the resource
$query = $modx->newQuery('modResource');
Expand Down Expand Up @@ -46,12 +46,12 @@ function setResourceID($systemSetting, $contextKey, $alias)
}

// Find resources and set correct IDs
setResourceID('romanesco.cta_container_id', 'global','call-to-actions');
setResourceID('romanesco.global_backgrounds_id', 'global','backgrounds');
setResourceID('formblocks.container_id', 'global','forms');
setResourceID('romanesco.dashboard_id', 'hub','dashboard');
setResourceID('romanesco.pattern_container_id', 'hub','patterns');
setResourceID('romanesco.backyard_container_id', 'hub','backyard');
setResourceID('romanesco.cta_container_id', 'global','call-to-actions', $modx);
setResourceID('romanesco.global_backgrounds_id', 'global','backgrounds', $modx);
setResourceID('formblocks.container_id', 'global','forms', $modx);
setResourceID('romanesco.dashboard_id', 'hub','dashboard', $modx);
setResourceID('romanesco.pattern_container_id', 'hub','patterns', $modx);
setResourceID('romanesco.backyard_container_id', 'hub','backyard', $modx);

break;
}
Expand Down
Binary file not shown.
3 changes: 2 additions & 1 deletion core/components/romanescobackyard/docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Changelog for Romanesco Backyard

## Backyard 0.5.0
Released on ...
Released on December 19, 2017

- Import assets folder from Romanesco Soil repository
- Assign resource IDs to corresponding system settings after installation

## Backyard 0.4.2
Released on November 21, 2017
Expand Down

0 comments on commit ac30c15

Please sign in to comment.