add pagebuilder publish url to index
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
var minisrv_service_file = true;
|
const minisrv_service_file = true;
|
||||||
|
|
||||||
var pagestore_exists = session_data.pagestore.pagestoreExists();
|
const pagestore_exists = session_data.pagestore.pagestoreExists();
|
||||||
|
|
||||||
|
const site = session_data.pagestore.getPublishDomain();
|
||||||
|
|
||||||
if (pagestore_exists != true)
|
if (pagestore_exists != true)
|
||||||
session_data.pagestore.createPagestore();
|
session_data.pagestore.createPagestore();
|
||||||
|
|
||||||
var pagearray = session_data.pagestore.listPages();
|
const pagearray = session_data.pagestore.listPages();
|
||||||
var numofpages = pagearray.length
|
const numofpages = pagearray.length
|
||||||
|
|
||||||
headers = `200 OK
|
headers = `200 OK
|
||||||
Connection: Keep-Alive
|
Connection: Keep-Alive
|
||||||
@@ -194,6 +196,9 @@ if (minisrv_config.services["wtv-author"].max_pages) {
|
|||||||
data += `
|
data += `
|
||||||
</table>
|
</table>
|
||||||
<p>A maximum of <b>${minisrv_config.services["wtv-author"].max_pages}</b> pages can be created, regardless of publish status.
|
<p>A maximum of <b>${minisrv_config.services["wtv-author"].max_pages}</b> pages can be created, regardless of publish status.
|
||||||
|
<br><br>
|
||||||
|
Your published pages are available at<br>
|
||||||
|
<a href="http://${site}/${session_data.getSessionData("subscriber_username")}/">http://${site}/${session_data.getSessionData("subscriber_username")}/</a>
|
||||||
</table>`
|
</table>`
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user