$docId = $modx->resource->get('id');

/* select this page for get() actions */
$resource = $modx->getObject('modResource', $docId);



/* setting placeholders */
$modx->setPlaceholder('Artist', $resource->getTVValue(26));
$modx->setPlaceholder('Title', $resource->getTVValue(27));
$modx->setPlaceholder('DAW', $resource->getTVValue(28));
$modx->setPlaceholder('DAWVersion', $resource->getTVValue(29));
$modx->setPlaceholder('RawMTKLinkSuffix', $resource->getTVValue(30));
$modx->setPlaceholder('Checkboxes', $resource->getTVValue(31));
$modx->setPlaceholder('Article1Link', $resource->getTVValue(32));
$modx->setPlaceholder('ScreensFolderName', $resource->getTVValue(33));
$modx->setPlaceholder('ProjectLinkSuffix', $resource->getTVValue(34));
$modx->setPlaceholder('FileSize', $resource->getTVValue(35));
$modx->setPlaceholder('DAWManufacturer', $resource->getTVValue(36));
$modx->setPlaceholder('Article1Issue', $resource->getTVValue(37));
$modx->setPlaceholder('Article1Title', $resource->getTVValue(39));
$modx->setPlaceholder('AddendumBulletPoints', $resource->getTVValue(42));

/* composer possessive generator */
if ($resource->getTVValue(38) != null)
  {
  $composerWithPossessive = $resource->getTVValue(38) . "'s ";
  $modx->setPlaceholder('Composer', $composerWithPossessive);
  }

/* compound artist/composer/title generator */
if ($composerWithPossessive != null)
  {
  $compound = $composerWithPossessive;
  $compound .= "'" . $resource->getTVValue(27) . "'";
  $compound .= ', performed by ' . $resource->getTVValue(26);
  $modx->setPlaceholder('CompoundArtistComposerTitle', $compound);
  }
else
  {
  $compound = $resource->getTVValue(26) . "'s ";
  $compound .= "'" . $resource->getTVValue(27) . "'";
  $modx->setPlaceholder('CompoundArtistComposerTitle', $compound);
  }

/* compound article link/issue/title generator */
if ($resource->getTVValue(39) != null)
  {
  $compound = ', as featured in <i>Sound On Sound</i> magazine' . "'" . 's <a href="';
  $compound .= $resource->getTVValue(32) . '">';
  $compound .= $resource->getTVValue(37) . ' ';
  $compound .= $resource->getTVValue(39) . '</a> article';
  $modx->setPlaceholder('CompoundArticleLinkIssueTitle', $compound);
  }
else
  {
  $compound = '';
  $modx->setPlaceholder('CompoundArticleLinkIssueTitle', $compound);
  }