API Sitemap - maxgrafik/violetCMS GitHub Wiki
[
{
url: <url>,
title: <string>,
published: <boolean>,
publishDate: <ISO date string> | null,
unpublishDate: <ISO date string> | null,
visible: <boolean>,
children: [...]
},
...
]
q=sitemap
q=sitemap&action=<action>
Depending on the action parameter you provide different data.
{
title: <string>,
slug: <string>,
template: <string>,
visible: <boolean>,
published: <boolean>
}
Creates a new node in the sitemap and the corresponding page. Returns the updated sitemap.
{
source: <url>, (url of page to move)
target: <url>, (url of [new] parent)
index : <int> (new position within target)
}
Moves the given node (including all child nodes) in the sitemap. Returns the updated sitemap.
{
url: <url> (url of page to delete)
}
Deletes the given node (including all child nodes) from the sitemap along with the page. Returns the updated sitemap.