This will connect to SQL Server and backup all databases with the Full
option.
This will delete any existing backup in the folder that is more than 5 days old (you can change the value 5
to whatever suites your needs).
This is a DDR Menu template to export a text format of a DNN site pages to reuse in the "Create Multiple Pages" feature on another site.
FIND:
(\d{0,2}:?\d{1,2}:\d\d)(\n)(.*)(\n)
REPLACE:
<strong>$1</strong>$3\n
@inherits ToSic.Sxc.Dnn.RazorComponent | |
@using System.Net.Http; | |
@{ | |
var client = new HttpClient(); | |
HttpResponseMessage response = client.GetAsync("<API_URL>").Result; | |
response.EnsureSuccessStatusCode(); | |
var result = response.Content.ReadAsStringAsync().Result; | |
var items = AsDynamic(result); | |
} |