WireSitemapXML::setPriorityByTemplates() method

Set priority by multiple templates at once

Priority 1.0 is highest, 0.1 is lowest, 0.5 is default (when not specified) Specify -1.0 to disallow the template from being included in the sitemap.

Example

$sitemap->setPriorityByTemplates([
  'home' => '1.0',
  'basic-page' => '0.5',
  'blog-post' => '0.7',
]);

Usage

$self = $sitemap->setPriorityByTemplates(array $priorityByTemplate);

Arguments

NameType(s)Description
priorityByTemplatearray

Array of [ 'template-name' => 0.5 ]

Return value

self


$sitemap methods and properties

API reference based on ProcessWire core version 3.0.244

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like superbude.de. ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH