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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Xml.Linq; | |
using Tridion.ContentManager.CoreService.Client; | |
namespace FixMMCompMetadataField | |
{ |
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
// get our JSON objects | |
dynamic jsonObject = JObject.Parse(jsonContent); | |
dynamic metaPage = jsonObject.MetadataFields; | |
// check if property exists in the JSON | |
if (metaPage.Property("contact") == null) | |
{ | |
dynamic contact = GetContact(sgMetadataFields); | |
if(contact != null) | |
{ |
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
Import-Module WebAdministration | |
if(!$web8Files) | |
{ | |
$logfile = "$PSScriptRoot\Sites_$(get-date -format `"yyyyMMdd_hhmmsstt`").log" | |
} | |
#this is our logging function, it must appear above the code where you are trying to use it. | |
#note there is a technique to get around needing this at the top, read the blog post to find out more... | |
function log($message, $color) |
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
param | |
( | |
[Parameter(Mandatory=$true)][string]$discoveryServiceUrl, | |
[Parameter(Mandatory=$true)][string]$csvSiteFile | |
) | |
# | |
# .\UpgradeSitesToWeb8.ps1 -discoveryServiceUrl "http://someserver:8882/discovery.svc" -csvSiteFile D:\SiteTest.csv -verbose | |
#Upgrade each site |
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
write-output "/*** | |
* _____ _ _ _____ ______ _ _ _____ _ _ _ | |
* / ____| | | |_ _| | ____| | | (_) |_ _| | | | | | | |
* | | __| | | | | | | |__ __ _| |_ ___ _ __ ___ _ ___ _ __ | | _ __ ___| |_ __ _| | | ___ _ __ | |
* | | |_ | | | | | | | __| \ \/ / __/ _ \ '_ \/ __| |/ _ \| '_ \ | | | '_ \/ __| __/ _` | | |/ _ \ '__| | |
* | |__| | |__| |_| |_ | |____ > <| || __/ | | \__ \ | (_) | | | | _| |_| | | \__ \ || (_| | | | __/ | | |
* \_____|\____/|_____| |______/_/\_\\__\___|_| |_|___/_|\___/|_| |_| |_____|_| |_|___/\__\__,_|_|_|\___|_| | |
* | |
* | |
" |
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; | |
using System.Collections.Generic; | |
using System.Web; | |
using FlowPub.Model; | |
using Tridion.ContentManager.CoreService.Client; | |
using System.Configuration; | |
namespace FlowPub.Tridion | |
{ | |
public class WorkflowHelper |
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
<html> | |
<head> | |
<script src="Scripts/jquery-1.6.4.js" type="text/javascript"></script> | |
<script src="Scripts/jquery.signalR-1.1.2.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(function () { | |
var connection = $.connection('/channel'); | |
connection.received(function (data) { | |
$('#messages').prepend('<li>' + data + '</li>'); |
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; | |
using Microsoft.AspNet.SignalR; | |
using System.Threading.Tasks; | |
namespace Signalr4Tridion.SignalrServer | |
{ | |
public class MessageCenterChannel : PersistentConnection | |
{ | |
protected override Task OnReceived(IRequest request, string connectionId, string data) | |
{ |
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; | |
using Microsoft.AspNet.SignalR.Client; | |
using Tridion.ContentManager; | |
using Tridion.ContentManager.ContentManagement; | |
using Tridion.ContentManager.Extensibility; | |
using Tridion.ContentManager.Extensibility.Events; | |
using Tridion.ContentManager.Publishing; | |
namespace EventSystemSignalr | |
{ |
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
<editor name="Signalr4TridionMC"> | |
<installpath>C:\Program Files (x86)\Tridion\web\WebUI\Editors\Signalr4TridionMC</installpath> | |
<configuration>Signalr4TridionMC.config</configuration> | |
<vdir>Signalr4TridionMC</vdir> | |
</editor> |
NewerOlder