Questions tagged [c#]

C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.

Filter by
Sorted by
Tagged with
1 vote
1 answer
795 views

How to access the parameter schema fields from C# TBB

I have schema A that has the field called Keys which is embedded schema type. The embedded schema consists of 2 fields that is the keyname and keyvalue. I have created component using schema A. After ...
k951's user avatar
  • 41
5 votes
3 answers
374 views

Tridion Mock Objects

I like to know if there is a generic mock object or community project that will provide me the ability to unit test my TOM API C# code following a test driven development approach. I'm looking for ...
user1096's user avatar
3 votes
1 answer
429 views

how to check published path of binaries?

I am writing a C# TBB for CT. i need to check all images in a folder and publish them. Do we have any method to check published path of a particular binary. I don't want to republish the binaries ...
AmateurCoder's user avatar
3 votes
2 answers
678 views

Tridion 2009 Set Metadata field value in C#

I have hundreds of pages that are using the same page metadata and I would like to set an specific value in one of this fields that is a text with C# or other automatic way. Does anyone knows how to ...
ITB's user avatar
  • 459
5 votes
2 answers
483 views

How to implement an ASCX User control SDL Tridion 2011?

I'm pretty new to Tridion 2011 and I need to create a simple ASCX Control to implement an ASP.NET dynamically generated DropDownList. I'm a little bit confused about how to create a Compound Template ...
TommO's user avatar
  • 93
7 votes
1 answer
720 views

How to get the Publication Target of a current Page in C#?

What I need is to have the Publication Target of a current Page. With the following code I get the Publication Target where the Page is published, but now I need to ensure that this Publication ...
ITB's user avatar
  • 459
1 vote
2 answers
277 views

Tridion uploading .net assembly error type mismatch

I am trying to upload a .net TBB assembly thorough the Visual Studio add-in. However, I am getting the following error: Error: Error: Type mismatch at[remote] Tridion.ContentManager....
Ali's user avatar
  • 1,447
3 votes
2 answers
122 views

Tridion 2009 C# Powertool that uses the Tridion wysywig editor

I'm working on a power tool that editors can use to update a component. Why we want this is not important right now ;p... I'm using CKEditor for the rich text options. http://docs.cksource.com/...
Roel van Roozendaal's user avatar
5 votes
1 answer
2k views

Coding around OData query result size limits?

I have code like this this.GetContentDeliveryService().Templates.Where(template => template.ItemId == presentationItem.Template.ItemNumber).FirstOrDefault(); which fails to find the desired ...
Ed Prescott's user avatar
1 vote
3 answers
129 views

c# powertool tridion2009 Component.Content not working

I'm trying to read the component source tab xml. when i try to get the component.content or Component.Xml Component.LoadXml(Component.xml) it returns an error. using Tridion.ContentManager.Interop....
Roel van Roozendaal's user avatar
1 vote
2 answers
1k views

Tridion Core Service - create component issue

I try to CRUD components in an ASP.NET MVC 4 project using Tridion Core Service First, I read a configuration component : var publicationData = client.Read("tcm:180-278202", new ReadOptions()) as ...
Giu Do's user avatar
  • 847
5 votes
1 answer
278 views

How to get a Page's ComponentPresentations via OData?

This code: ContentDeliveryService cds = new ContentDeliveryService(...); Page itemPage = cds.Pages.Where(page => page.ItemId == itemId).Single(); Returns a page with zero ...
Ed Prescott's user avatar
8 votes
1 answer
315 views

UserPermissions required to use Core Service?

This code works nicely when I have "Administrator" privileges... string item = "tcm:12-31-64"; if (this.client.IsExistingObject(item)) { this.client.Read(item, new ReadOptions();); } ...but when ...
Ed Prescott's user avatar
5 votes
2 answers
109 views

Check permission granted to a trustee in Tridion Audience Manager AddressBook

We are creating a custom application trying to get the contact list from address book. The list of addressbooks is accessed using StaticAddressBook.GetList, it provides the list of all the ...
bRajesh's user avatar
  • 51
9 votes
2 answers
1k views

Using CoreServiceClient in C#, how do I get the latest published version of an item?

I'm new to Tridion, thanks for your help :-) I can successfully bind to a service endpoint, validate CoreServiceClient.IsExistingObject("tcm:xx-xxx-xx"), and now I would like to retrieve the version (...
Ed Prescott's user avatar
3 votes
1 answer
473 views

Component Schema convert into C# class file for Tridion Core services

I am trying to convert Component schema definition files int to C# class files using XSD.EXE for using Tridion core services. But when I create the XSD file in VS2011.Net using component schema i am ...
TridionDev's user avatar
15 votes
4 answers
3k views

Are there any sources of good study materials for SDL Tridion 2011 templating?

I have been working in SDL Tridion 2011 writing C# Template Building Blogs and Dream Weaver Templates. So far, everything I have learned has been either with help from more senior developers OR by ...
R.C's user avatar
  • 926
8 votes
2 answers
497 views

Getting Children Keywords from another Keyword

I am trying to retrieve the Children Keywords of another Keyword from its URI with the following code: if (kwdOrCatURI.StartsWith("tcm:")) { if (kwdOrCatURI.EndsWith("-1024")) { ...
Jaime Santos Alcón's user avatar
3 votes
3 answers
1k views

How do I, in a C# TBB, convert a TCM ID to a link?

I have a C# TBB which takes a component, and should be pushing a link into the package stack. If the component is a publication, and it references a multimedia component, the link should be a link to ...
George's user avatar
  • 335
8 votes
2 answers
324 views

Tridion 2009 C# : How To add a custom Schema name space

I'm creating a web service in C# for Tridion 2009. This web service creates a schema in Tridion based on an XML input file. The schema gets created just fine. But I can't seem to change the schema ...
Roel van Roozendaal's user avatar

1
2