Skip to content

Commit

Permalink
Migrate from Posts Bundle to Content Types bundle
Browse files Browse the repository at this point in the history
refs #95
  • Loading branch information
simensen committed Jan 4, 2014
1 parent 8f8e25b commit 007ec56
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ProxySourceTaxonomyIndexGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,23 @@ public function generate(SourceInterface $source)
$generatedSource->data()->set($this->injectedTaxonKey, $taxon);
$generatedSource->data()->set($this->injectedTaxonItemsKey, $items);


//
// TODO: REMOVE THIS
//
// This is needed for BC purposes. This should be removed
// eventually and existing markup should be updated.
//

switch ($this->injectedTaxonItemsKey) {
case 'tag_posts':
$generatedSource->data()->set('tagged_posts', $items);
break;
case 'category_posts':
$generatedSource->data()->set('categoried_posts', $items);
break;
}

$generatedSources[] = $generatedSource;
}

Expand Down

0 comments on commit 007ec56

Please sign in to comment.