Problem: there are no easy ways to create a page from search

Solution: add create new page option to search results
This commit is contained in:
Peter Stuifzand 2022-01-07 20:37:44 +01:00
parent 1f6a22966f
commit 3c53e14229

View File

@ -20,6 +20,12 @@ function startQuery(query) {
.then(res => res.json())
.then(data => {
let actualResult = [];
actualResult.push({
ref: query,
title: 'Create new page "' + query + '"',
line: 'New page',
text: 'New page',
})
$.each(data.hits, (key, value) => {
actualResult.push({
ref: value.fields.page,