Set priority by page
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.
Usage
$self = $sitemap->setPriorityByPage($page, $priority);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page, int | Page object or page ID integer |
priority | float, int, string | Float or string between 0.0 and 1.0, or int between 0 and 10. |
Return value
self
$sitemap methods and properties
API reference based on ProcessWire core version 3.0.236