手册:$wgSitemapNamespacesPriorities
Appearance
| 搜索: $wgSitemapNamespacesPriorities | |
|---|---|
| Custom namespace priorities for sitemaps. |
|
| 引进版本: | 1.19.0 (r95320) |
| 弃用版本: | 1.45.0 |
| 移除版本: | 仍在使用 |
| 允许的值: | (数组)或false |
| 默认值: | false |
| 其他设置: 按首字母排序 | 按功能排序 | |
详情
This configuration parameter allows you to set custom priorities to namespaces when sitemaps are generated using the generateSitemap.php script.
This array should be a map of namespace IDs to their priority. 例子:
$wgSitemapNamespacesPriorities = [
NS_USER => '0.9',
NS_HELP => '0.1'
];
参阅
- $wgSitemapNamespaces - Namespaces to generate a sitemap or false for all namespaces.