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 fileinfo
File for which to generate links
INTEGER id
File id
STRING link
Link to first file page
DATETIME modificationdate
Modification date (in whfs)
STRING subpageurl
Base url for statically created follow up pages
INTEGER type
File type
RECORD context
Context for this request
BOOLEAN forconsilio
We're gathering information for consilio
BOOLEAN forsitemap
We're gathering information for a sitemap
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
RECORD consiliofields
Additional fields (used for indexing by Consilio)
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)
STRING title
Title for this file (used for indexing by Consilio)