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
public string getcomponentid() | |
{ | |
var client = Utility.GetCoreServiceSettings(); | |
string result = "Item not found"; | |
string TargetFolderTcmId = @"/webdav/200%20Master%20Content%20(ENG)/Building%20Blocks/Content/"; // Put your folder's webdav url or tcm uri here | |
string title = @"Component Title";// Put your component title here | |
var productsXML = | |
client.GetListXml(TargetFolderTcmId, | |
new OrganizationalItemItemsFilterData |
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
public string getcomponentid() | |
{ | |
var client = Utility.GetCoreServiceSettings(); | |
string result = "Item not found"; | |
string TargetFolderTcmId = @"tcm:5-1945-2"; // Put your folder tcm id here | |
string title = @"Component Title";// Put your component title here | |
var productsXML = | |
client.GetListXml(TargetFolderTcmId, | |
new OrganizationalItemItemsFilterData |
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
//=======================================// | |
// ------- Author : Sayantan Basu ------- | |
// ------- Date : 24-03-2015 ------- | |
//=======================================// | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.IO; | |
using System.Text; |
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
public static void RemoveItemFromBundle(string bundleId, string itemId) | |
{ | |
CoreServiceClient _CoreServiceClient = Utility.GetCoreServiceSettings(); | |
ReadOptions _readOption = new ReadOptions(); | |
//string bundleId = "tcm:5-1076-8192"; | |
VirtualFolderData bundle = (VirtualFolderData)_CoreServiceClient.Read(bundleId, _readOption); | |
XmlDocument bundleConfiguration = new XmlDocument(); | |
bundleConfiguration.LoadXml(bundle.Configuration); | |
XmlNameTable nameTable = new NameTable(); |
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)] |
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
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
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 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) | |
{ |
NewerOlder