-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extended filters can be defined in UserTsConfig. For demonstration there are examples that can be included with @import 'EXT:pagetreefilter/Configuration/TsConfig/Examples/*.tsconfig' Relates: #16
- Loading branch information
Christoph Lehmann
committed
Sep 9, 2022
1 parent
66a1247
commit 6d5a0ee
Showing
9 changed files
with
219 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
tx_pagetreefilter { | ||
filters { | ||
indexingEnabled { | ||
description = Page will be indexed by search engines | ||
select { | ||
field = uid | ||
table = pages | ||
where = no_index=0 AND doktype < 199 | ||
} | ||
backgroundColor = green | ||
} | ||
indexingDisabled { | ||
description = Page will be not be indexed by search engines | ||
select { | ||
field = uid | ||
table = pages | ||
where = no_index=1 AND doktype < 199 | ||
} | ||
backgroundColor = grey | ||
} | ||
noMetaDescription { | ||
description = Page has no meta description, so the description in search engine results might be inaccurate | ||
select { | ||
field = uid | ||
table = pages | ||
where = no_index=0 AND doktype < 199 AND (description='' OR description IS NULL) | ||
} | ||
backgroundColor = red | ||
} | ||
} | ||
|
||
wizardItems { | ||
seoStatus { | ||
title = SEO Status | ||
description = Show pages with SEO issues | ||
iconIdentifier = content-elements-searchform | ||
filter = filter=indexingEnabled filter=indexingDisabled filter=noMetaDescription | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
tx_pagetreefilter { | ||
filters { | ||
indexedInSolr { | ||
# The description is visible when you hover over the page icon | ||
description = Indexed in Solr | ||
|
||
select { | ||
field = item_uid | ||
table = tx_solr_indexqueue_item | ||
where = indexing_configuration = 'pages' AND indexed > changed AND errors = '' | ||
} | ||
|
||
# A CSS background color for pages matching the query | ||
backgroundColor = darkgreen | ||
} | ||
solrIndexingErrors { | ||
description = Has indexing error | ||
select { | ||
field = item_uid | ||
table = tx_solr_indexqueue_item | ||
where = indexing_configuration = 'pages' AND errors != '' | ||
} | ||
backgroundColor = red | ||
} | ||
solrNeedsIndexing { | ||
description = Needs (re)indexing | ||
select { | ||
field = item_uid | ||
table = tx_solr_indexqueue_item | ||
where = indexing_configuration = 'pages' AND indexed = 0 AND errors = '' | ||
} | ||
backgroundColor = lightgreen | ||
} | ||
solrNotInQueue { | ||
description = Not in Index Queue | ||
select { | ||
field = uid | ||
table = pages | ||
where = sys_language_uid = 0 AND uid NOT IN (SELECT item_uid FROM tx_solr_indexqueue_item) | ||
} | ||
backgroundColor = orange | ||
} | ||
solrNoSearch { | ||
description = Indexing disabled | ||
select { | ||
field = uid | ||
table = pages | ||
where = no_search = 1 | ||
} | ||
backgroundColor = lightgrey | ||
} | ||
solrNoSearchSubEntries { | ||
description = Indexing disabled for sub entries | ||
select { | ||
field = uid | ||
table = pages | ||
where = no_search_sub_entries = 1 | ||
} | ||
backgroundColor = #4b4b4b | ||
} | ||
} | ||
|
||
wizardItems { | ||
solrIndexQueueStatus { | ||
title = Solr Index Queue Status | ||
description = Show pages that are indexed, not in the queue or have errors | ||
|
||
# Overview of icons in TYPO3: https://typo3.github.io/TYPO3.Icons/ | ||
iconIdentifier = content-elements-searchform | ||
|
||
# Multiple filters can be combined. The order matters for overlapping queries with different background colors | ||
filter = filter=indexedInSolr filter=solrIndexingErrors filter=solrNeedsIndexing filter=solrNotInQueue filter=solrNoSearch filter=solrNoSearchSubEntries | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters