Skip to content

Commit

Permalink
Add shorthand for type:handle
Browse files Browse the repository at this point in the history
  • Loading branch information
rungta committed Sep 5, 2023
1 parent 2cf189c commit 37343a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Release notes for the Router Craft CMS plugin.

## Unreleased

### Added
- Added shorthand for the _Type_ filter's `value` parameter.

### Fixed
- Fixed a bug where an element's descendants were incorrectly passed to the `relatedTo` criteria.

Expand Down
1 change: 1 addition & 0 deletions src/controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function actionIndex(string $template, array $variables = [], array $filt
'date' => 'field',
'month' => 'field',
'section' => 'value',
'type' => 'value',
];

$criteria = Entry::find();
Expand Down

0 comments on commit 37343a7

Please sign in to comment.