PagelistProviderBase::GetPages (open)
Gather relevant links for the sitemap or consilio
Syntax
LOADLIB "mod::consilio/lib/pagelists.whlib";
RECORD ARRAY FUNCTION GetPages(RECORD fileinfo, RECORD context)Parameters
RECORD fileinfoFile for which to generate links
INTEGER idFile id
STRING linkLink to first file page
DATETIME modificationdateModification date (in whfs)
STRING subpageurlBase url for statically created follow up pages
INTEGER typeFile type
RECORD contextContext for this request
BOOLEAN forconsilioWe're gathering information for consilio
BOOLEAN forsitemapWe're gathering information for a sitemap
Return value
RECORD ARRAYList of links (including the first page if it should be in the sitemap)
STRING changefreqChange frequency: always, hourly, daily, weekly, monthly, yearly, never. Leave empty if unknown
RECORD consiliofieldsAdditional fields (used for indexing by Consilio)
STRING linkAbsolute link for sitemap
DATETIME modificationdateLast modification, DEFAULT DATETIME if unknown
MONEY priorityIndexing priority, 0.0 .. 1.0 (set to 0 if unknown)
STRING titleTitle for this file (used for indexing by Consilio)