Skip to content

Commit

Permalink
Merge pull request #3512 from Fredxd/patch-1
Browse files Browse the repository at this point in the history
Fix listing_records in taxonomy
  • Loading branch information
bobdenotter authored Dec 22, 2023
2 parents 0f7a155 + 7c5fdb0 commit b7f7336
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Controller/Frontend/TaxonomyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function listing(ContentRepository $contentRepository, string $taxonomysl

$taxonomy = TaxonomyType::factory($taxonomyslug, $this->config->get('taxonomies'));

if ($taxonomy->has('listing_records')) {
$amountPerPage = $taxonomy->get('listing_records');
}

/** @var Content[] $records */
$records = $contentRepository->findForTaxonomy($page, $taxonomy, $slug, $amountPerPage);

Expand Down

0 comments on commit b7f7336

Please sign in to comment.