Skip to content

Commit

Permalink
[TASK] Don't display hidden pages and non-content pages in ageFilter …
Browse files Browse the repository at this point in the history
…mode
  • Loading branch information
lorenzulrich authored and www-data committed May 6, 2015
1 parent 625b492 commit 0d1deca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Tree/Pagetree/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ protected function getWhereClause($id, $searchFilter = '') {
}

if ($ageFilter > 0) {
// Hide doktypes that normally don't contain normal content
$where .= ' AND doktype NOT IN(3,4,6,7,199,254,255)';
// Hide hidden pages
$where .= ' AND NOT hidden ';
$where .= ' AND SYS_LASTCHANGED < ' . $ageFilter;
}
}
Expand Down

0 comments on commit 0d1deca

Please sign in to comment.