Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Version 20.1 #233

Merged
merged 10 commits into from
Apr 18, 2024
17 changes: 7 additions & 10 deletions src/Services/Indexer/IndexBuilderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,20 @@ private function indexChildPages($parentId)
continue;
}

$menu = Menu::whereId($page->id)->firstOrFail();

if (! isset($page->template->properties->searchable) || $page->template->properties->searchable == 0) {
$this->writeDebug(" skipping, template not searchable\n");

continue;
}
if (isset($page->properties->excludeFromSearch) && $page->properties->excludeFromSearch == true) {
} elseif (isset($page->properties->excludeFromSearch) && $page->properties->excludeFromSearch == true) {
$this->writeDebug(" skipping, page not searchable\n");

continue;
}

$menu = Menu::whereId($page->id)->firstOrFail();
} else {

foreach ($this->locales as $lang) {
$this->updatePage($menu, $lang);
foreach ($this->locales as $lang) {
$this->updatePage($menu, $lang);
}
}

// index subitems for page
foreach ($this->locales as $lang) {
$this->updateSubPages($menu, $lang);
Expand Down
Loading