Skip to content
Snippets Groups Projects
Commit cc1d3929 authored by Georgi Mateev's avatar Georgi Mateev
Browse files

[TASK] Take the no_search field into consideration when generating sitemaps to...

[TASK] Take the no_search field into consideration when generating sitemaps to avoid jobs being shown twice
parent 7dca2b7a
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ class SitemapService {
$databaseResource = $queryBuilder->select('tt_content.pid', 'pages', 'tt_content.tstamp')
->from('tt_content')
->innerJoin('tt_content', 'pages', 'pages', 'pages.uid = tt_content.pid
AND pages.shortcut < 1') //TODO: or nav_hide ?
AND pages.no_search = 0')
->where(
$queryBuilder->expr()->andX(
$queryBuilder->expr()->eq('CType', $queryBuilder->createNamedParameter('list')),
......
......@@ -33,7 +33,7 @@ call_user_func(
'SGalinski.sg_jobs',
'Joblist',
[
// Cacheable actions
// Available actions
'Joblist' => 'index'
],
[
......@@ -45,7 +45,7 @@ call_user_func(
'SGalinski.sg_jobs',
'JobApplication',
[
// Cacheable actions
// Available actions
'Joblist' => 'applyForm, apply'
],
[
......@@ -57,7 +57,7 @@ call_user_func(
'SGalinski.sg_jobs',
'JobTeaser',
[
// Cacheable actions
// Available actions
'JobTeaser' => 'index'
],
[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment