Hot answers tagged

6 votes
Accepted

How to assign the value of a component link field to an XML element?

I'd cover all bases and check if the schema field exists (what if someone renames this later or you decide to allow another schema that only has some of the currently covered fields)... ...
user avatar
6 votes

How to assign the value of a component link field to an XML element?

As Peter mentioned in his comments that your question is unclear. But if I consider your last comment which says its a "Object Reference" error, So I think it would be best to check the Objects ...
user avatar
6 votes

sometimes _client.IsExistingObject(id) returns false for . and /

Are you escaping your WebDAV URLs correctly? Try loading your folder by ID and checking it's locationInfo.WebDavUrl property to make sure you are. e.g: //created a test folder named "testfolderwith/...
user avatar
5 votes
Accepted

What's the benefit to use VS2012 instead of VS2010 when using Tridion 2013

Other than V2012 being a superior product to VS2010 enabling the developer to be more effective, there is no advantage specific to Tridion TOM.NET-related or Content Delivery-related development.
user avatar
5 votes
Accepted

CoreService filter with SchemaPurpose and Recursive not working

As Rick mentioned in his comment, it might be that what your trying to achieve is not possible within a single call due to limitations of the system. If that is the case, you will have to do the ...
user avatar
  • 6,165
4 votes

How to get the list of all component templates from the publications

Have you seen the GetComponentTemplateUris TBB in this open source set of TBBs on SDL Tridion World - if not, that will probably help you.
user avatar
  • 16.4k
4 votes

Tridion Mock Objects

Dominic Cronin, Quirijn Slings, and Andrey Marchuk developed a Tridion Template Testing framework called T-Cubed that may be of some assistance: https://github.com/DominicCronin/T-cubed It's mainly ...
user avatar
  • 2,645
4 votes

Want to migrate content and page from Tridion to IBM WCM

You could also create a Tridion Custom Deployer and then 'publish' the content from Tridion into IBM WCM. The advantage of this approach is that you can use the Tridion Deployer Java APIs and also ...
user avatar
  • 10.2k
4 votes

Structure groups hierarchy to be used for parent child relationship

Let me use an explicit but hypothetical example to add an answer. It looks like a "Parent" is a News Topic or event of sorts, which can have individual News Stories. For example: /News/Weather/...
user avatar
  • 12.6k
4 votes
Accepted

c# Tridion 2011 How to get metadata selected keyword from a component

The KeywordField is the field itself, not the chosen Keyword. You need to get it's value... something like this: ItemFields fields = new ItemFields(component.Metadata, component.MetadataSchema); ...
user avatar
4 votes
Accepted

"Sealed" Keyword Equivalent/Similar functionality in Tridion | Stop Inheritance from Parent Publication to Child Publication

I'm going to answer off-topic, at least to give some context here. Like David and Rick said, the answer is "no." But similar to the "favor composition over inheritance" object-oriented design pattern ...
user avatar
  • 12.6k
4 votes
Accepted

Read TCM IDs of multi-value embedded field using .NET Core Service script

The key here is that, while for regular fields, the Value (or Values) property will give you the value of the field, but for embedded schema fields, you should use the SubFields property. This will ...
user avatar
4 votes
Accepted

How to Properly Dispose TopologyManagerClient?

In general all objects having any interaction with unmanaged resources should be disposed. With the CoreServiceClient (CS client) it's obvious and easy to do (see Tridion 2013 SP1 Core service timeout ...
user avatar
  • 6,165
4 votes

How to retrieve GUID from files for Tridion docs SP2 via WCF?

Let me clarify to help you with this. SDL Tridion Docs comes in different WCF endpoints for different services. Here is the list of WCF services available and Web Services classes and methods refer to ...
user avatar
  • 7,495
4 votes

What is the recommended best practice for C# Workflow using External Activity for Logging and Configuration?

I normally add it GAC on the CM server and on publisher machines. It is so widely used (because it is standard now) that it makes sense to have it there (to be system-wide available). There are quite ...
user avatar
  • 8,446
3 votes

Structure groups hierarchy to be used for parent child relationship

The complete answer will depend on your implementation. Basically whether the parent child relationship is managed through BluePrinting (child websites) or if you are simply talking of related ...
user avatar
3 votes

What's the benefit to use VS2012 instead of VS2010 when using Tridion 2013

The main advantage I can see is that Visual Studio 2013 has native integration with Git and Visual Studio online, which in fact are very robust features for modern software development.
user avatar
  • 9,352
3 votes

How to read the component the parameter schema field

It's a bit unclear from you question, but I think I somewhat understand what you are looking to do (or I'm way off and totally jumped the gun). I'm going to make some assumptions here in hopes that it ...
user avatar
  • 2,926
3 votes

How to access the parameter schema fields from C# TBB

The text below is OK - but irrelevant to the actual question. To read the parameter of a TBB, simply use this: string value = package.GetValue("FieldName"); Where "FieldName" is the (XML) name of ...
user avatar
  • 28.9k
3 votes

Tridion.Logging missing one of its dependencies

Seems like you are referring to the wrong version of Tridion.Logging dll (Tridion 2011 instead of the one from Tridion 2013). Please check the Tridion.Logging.dll versions for Tridion 2013 they ...
user avatar
  • 1,475
3 votes

"Sealed" Keyword Equivalent/Similar functionality in Tridion | Stop Inheritance from Parent Publication to Child Publication

You can prevent localization (in certain Publications) using security: you can set (un)localize permission on Structure Group level. Stopping inheritance/sharing is not possible.
user avatar
3 votes

sometimes _client.IsExistingObject(id) returns false for . and /

We found out that actually this is a bug in system. We contacted SDL customer support and they verified that its indeed so. For example, if folder has dot in its name (.), IsExistingObject will return ...
user avatar
  • 8,446
3 votes
Accepted

Which is better performance wise : Razor TBB or C# TBB?

The advantage of having it in Razor or DWT is readability of HTML. If you dump it all into a dirty C# TBB, you'll be coding all kinds of escaped strings with HTML - PITA to read/maintain/update IMO. ...
user avatar
3 votes

DXA Issue mapping ComponentLink fields to Model c#

Looks like you have using vocab = "http://schema.org/", but I'm not sure did you create the specifying semantics on those schemas as mentioned in this document reference Otherwise, you can switch to ...
user avatar
  • 7,495
3 votes

how to get a string by using substring?

Without knowing more about what you are trying to do, the simple answer would be: you don't split the XML into strings. You parse it as XML and extract the data that you want. So, for instance, here'...
user avatar
  • 19.8k
2 votes

Tridion Mock Objects

I'll throw another possibility into the mix. Ideally, in this scenario (in the context of a C# TBB, for example), what you'd want to do is mock out the Engine and Package objects to control their ...
user avatar
  • 2,039
2 votes

How to return the component template id based on the name of the component template

I'll structure this as an answer, even though your question is vague and incomplete. Assuming Miguels assumption is correct, you actually want to rewrite VBScript Templates in C#... I wouldn't ...
user avatar
  • 29.6k
2 votes

How to return the component template id based on the name of the component template

Seems you are populating the arrays that will be used in the front end (java) from the CMS using vbscript, as you are using the following syntax arrctNames[[%=i%]] = "[%=Node.getAttribute("Title")%]";...
user avatar
  • 1,196
2 votes

What's the benefit to use VS2012 instead of VS2010 when using Tridion 2013

One advantage you would have in using VS2012 (or up) is that you can use the .NET framework 4.5, now for most Template Building Blocks and Event Handlers (using the TOM.NET API), there isn't much if ...
user avatar
  • 29.6k
2 votes

CoreService: Upload image to Tridion fails sometimes. Unable to open uploaded file

Do you have a load balancer between your client and the Core Service? That may cause the problem: if the load balancer sends the upload request to another CM backend server than the subsequent Save ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible