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
/** | |
* Use this controller to manually invalidate the DD4T and its dependency cache. | |
* Please note: this controller for developers. | |
*/ | |
@Controller | |
public class CacheController { | |
private final Logger LOG = LoggerFactory.getLogger(getClass()); | |
private final ApplicationContext applicationContext; |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
</head> | |
<body> | |
<form id="form1" runat="server"> |
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 Tridion.ContentDelivery.AmbientData; | |
namespace Sdl.Web.Site.Helper.HttpModules | |
{ | |
public class AmbientDataFrameworkCustomHttpModule : IHttpModule | |
{ | |
void IHttpModule.Dispose() { } | |
void IHttpModule.Init(HttpApplication context) |
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 Sdl.AudienceManager.ContentDelivery; | |
using Sdl.AudienceManager.ContentDelivery.Profile; | |
namespace My.Controllers | |
{ | |
public class LoginController : BaseController | |
{ | |
[HttpPost] | |
public virtual ActionResult LoginForm(FormModel model, EntityModel entity, int containerSize = 0) | |
{ |
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
static void Main(string[] args) | |
{ | |
using (var client = Utility.CoreServiceClient) | |
{ | |
// get the list of the publications. | |
var publications = client.GetSystemWideList(new RepositoriesFilterData()); | |
foreach (var pub in publications.Where(p => p.Title.Contains("600") || p.Title.Contains("700")) | |
{ | |
// Read Publication details. |
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.Globalization; | |
using Sdl.Web.Common.Models; | |
namespace Models | |
{ | |
public class PageViewModel : PageModel | |
{ | |
private SecurityMessage message; | |
Provide provider = new Provider(); | |
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
function New-TridionBundle | |
{ | |
<# | |
.Synopsis | |
Creates a new bundle based on specified bundle schema. | |
.Inputs | |
None. | |
.Outputs |
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
Function AddItemToBundle | |
{ | |
[CmdletBinding()] | |
Param ( | |
# Bundle ID | |
[Parameter(Mandatory=$true)] | |
[string]$BundleId, | |
# Item ID . | |
[Parameter(Mandatory=$true)] |
OlderNewer