This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web; | |
using System.Web.Mvc; | |
using Sitecore.Mvc.Extensions; | |
namespace sitecore.local.Controllers | |
{ | |
public static class Angular | |
{ | |
public static IHtmlString RawJsEncodedString<T>(this HtmlHelper<T> htmlHelper, HtmlString str) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Sitecore.Mvc | |
@using Sitecore.Mvc.Extensions | |
@using sitecore.local.Controllers | |
@{ | |
Layout = null; | |
} | |
<!DOCTYPE html> | |
<html> | |
<head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<sitecore> | |
<scheduling> | |
<!--Custom Code that will do item moving--> | |
<agent type="sitecore.local.CustomCode.ItemMoving" method="Execute" interval="00:00:59"/> | |
</scheduling> | |
</sitecore> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sitecore.Configuration; | |
using Sitecore.Data.Items; | |
using Sitecore.Data; | |
using Sitecore.Data.Fields; | |
namespace sitecore.local.CustomCode | |
{ | |
public class ItemMoving | |
{ | |
private readonly Database _sourceDatabase = Factory.GetDatabase("master"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var fs = require('fs'); | |
var app = express(); | |
app.get('/logJson', function (req, res) { | |
const logsFolder = '/folder/path/'; | |
fs.readdir(logsFolder, (err, files) => { | |
if (err) { |
NewerOlder