GenerateSitemapLinks (open)

Get the sitemap links for files in a folder, recursively

Syntax

LOADLIB "mod::consilio/lib/pagelists.whlib";

RECORD ARRAY FUNCTION GenerateSitemapLinks(INTEGER startfolder, RECORD options)

Parameters

INTEGER startfolder

Starting point

RECORD options

Options

INTEGER ARRAY limitobjects

Limit sitemap links to the specified objects.

BOOLEAN skipfolderswithoutindex

Ignore folders that don't have a published index file

Return value

RECORD ARRAY

List of links (including the first page if it should be in the sitemap)

STRING changefreq

Change frequency: always, hourly, daily, weekly, monthly, yearly, never. Leave empty if unknown

INTEGER fileid

ID of the WHFS file

INTEGER filetype

Type of the WHFS file

STRING link

Absolute link for sitemap

DATETIME modificationdate

Last modification, DEFAULT DATETIME if unknown

MONEY priority

Indexing priority, 0.0 .. 1.0 (set to 0 if unknown)