Manual:$wgSitemapNamespaces
Appearance
| Buscar: $wgSitemapNamespaces | |
|---|---|
| Array of namespaces identified by their IDs to generate a sitemap or false for all namespaces. |
|
| Introducido en la versión: | 1.13.0 |
| Eliminado en la versión: | aún se usa |
| Valores permitidos: | (array) or false |
| Valor predeterminado: | false |
| Otras configuraciones: Alfabéticamente | Por Función | |
Detalles
Array of namespace IDs to generate a sitemap for when the maintenance/generateSitemap.php script is run, or false if one is to be generated for all namespaces.
Ejemplo
$wgSitemapNamespaces = [
0,
2,
4,
12
];
Now only sitemap files for the main (0), user (2), project (4) and help (12) namespace will be generated and thus included into the sitemap.
See also
- $wgSitemapNamespacesPriorities - Custom namespace priorities for sitemaps.