We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5c2016 commit cec0011Copy full SHA for cec0011
Model/ItemProvider/PrismicPages.php
@@ -73,7 +73,17 @@ public function getItems($storeId): array
73
['lang' => $this->configuration->getContentLanguage($store)]
74
);
75
76
- $this->addDocumentsToSitemap($localeDocuments->results, $store);
+ foreach (range(1, $localeDocuments->total_pages) as $page) {
77
+ $documents = $api->query(
78
+ [Predicates::at('document.type', $sitemapContentType)],
79
+ [
80
+ 'lang' => $this->configuration->getContentLanguage($store),
81
+ 'page' => $page
82
+ ]
83
+ );
84
+
85
+ $this->addDocumentsToSitemap($documents->results, $store);
86
+ }
87
}
88
89
return $this->sitemapItems;
0 commit comments