#1343 - außerdem wurde nun das Menu "Reiseziele" entfernt, sollte eine Page keine Geschwister haben.
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3360 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
1a0388311e
commit
9e9bf8eb9d
5 changed files with 46 additions and 33 deletions
|
|
@ -143,6 +143,17 @@ class PageRepository extends NestedTreeRepository
|
|||
{
|
||||
$sibling->setParent($parent);
|
||||
}
|
||||
return $siblings;
|
||||
|
||||
// Da diese Methode nur für die Navigation verwendet wird, kann man hier vorfiltern
|
||||
$filteredSiblings = [];
|
||||
foreach ($siblings as &$sibling)
|
||||
{
|
||||
if($sibling->getStatus() == 1 && $sibling->getShowInNavi() == 1)
|
||||
{
|
||||
$filteredSiblings[] = $sibling;
|
||||
}
|
||||
}
|
||||
|
||||
return $filteredSiblings;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue