Set URL segments by multiple templates at once
Example
$sitemap->setUrlSegmentsByTemplates([
'basic-page' => [ 'print', 'email' ],
'blog' => [ 'newest', 'featured', 'popular' ],
]);
Usage
$self = $sitemap->setUrlSegmentsByTemplates(array $urlSegmentsByTemplate);
Arguments
Name | Type(s) | Description |
---|---|---|
urlSegmentsByTemplate | array | Array of [ 'template-name' => [ 'foo', 'bar', 'baz' ] ] |
Return value
self
$sitemap methods and properties
API reference based on ProcessWire core version 3.0.236