tridion-2011

Looping through the multiple component links to get the schema name of the linked component in Dreamweaver TBB in SDL Tridion 2011

泪湿孤枕 提交于 2019-12-06 09:04:17
I am working on the Dreamweaver template building blocks and implementing SiteEdit for the page. I am using SDL Tridion 2011 SP1 and Site Edit 2012 and Default Dream Weaver Templating. My schema has a multi-value field of type "Component Link". My main component XML looks like this. <Content xmlns="UUID"> <link xlink:type="simple" xlink:href="tcm:202-8121" xmlns:xlink="http://www.w3.org/1999/xlink"></link> <link xlink:type="simple" xlink:href="tcm:202-8122" xmlns:xlink="http://www.w3.org/1999/xlink"></link> </Content> Linked component XML looks like this. <Content xmlns="Some other UUID">

Tridion CoreService Authentication/Impersonation

纵然是瞬间 提交于 2019-12-06 08:41:35
问题 I have developed a .Net Library that uses the Core Service. This library is called from VBScript from a Workflow Automated Decision and uses Core Service to perform some activities related to that workflow process. I was able to successfully connect to the service using a service account we have for Tridion: CoreServiceClient client = new CoreServiceReference.CoreServiceClient( binding, endpoint); client.ChannelFactory.Credentials.Windows.ClientCredential = new NetworkCredential

How to get the keyword from category name in C# TBB?

安稳与你 提交于 2019-12-06 08:02:22
问题 I am trying to fetch the keyword present in the Category using C# TBB to use the output in following DWT TBB. For that I have a component with the Category field. I am trying to write the following C# TBB to get the keyword value. <%@Import NameSpace="Tridion.ContentManager.Templating.Expression" %> try { string className = package.GetValue("Component.Fields.title"); KeywordField keywordField = package.GetKeywordByTitle(className); package.PushItem("Class", package.CreateStringItem

How to get the user Id of the currently logged user in Tridion?

折月煮酒 提交于 2019-12-06 07:32:49
I implemented a Ribbon tool bar button in the Tridion. As part of that I need to loop through the some components, which requires a valid session. To create a session in the Tridion I require a User Id. How to get the User Id of the current user(windows User Id)? Will the following command help us to get the user info? If so please let me know the usage of the command. getJsonUserSettings(); Thanks in advance. Early response is appreciated. Try this way to get the User ID: Tridion.UI.UserSettings.getJsonUserSettings(true).User["@ID"] Nuno Linhares In c# you can use Tridion.Web.UI.Core.Utils

Error: Could not find default endpoint element that references contract

試著忘記壹切 提交于 2019-12-06 06:12:41
I am writing a below code to create a MM component in tridion through core service, but i am getting error to run this service, public ComponentData GetNewMultimediaComponent(CoreServiceClient Client, string folderUri, string schemaUri, string title, FileInfo fi) { if (fi.Extension == ".png") { string mmType = GetMultiMediaType(fi.Extension); if (mmType != null) { string tempLocation = ""; UploadResponse us = new UploadResponse(); using (StreamUploadClient streamClient = GetConnection()) { FileStream objfilestream = new FileStream(fi.FullName, FileMode.Open, FileAccess.Read); tempLocation =

How can I get the 'key' of a keyword from an XSLT TBB?

孤街浪徒 提交于 2019-12-05 21:51:41
I am working on the XSLT TBB (using the XSLT Mediator on Tridion 2011 SP1) to retrieve the key Value from the Keyword. My Keyword looks like this. Value: Some Value Key: Its ID is 123 It's a normal Keyword. I have created a schema with a field. The values will be selected from List and from Category. The component Source looks like this: This is the Component source directly taken from the component of Tridion UI. <Content xmlns="Some Name space"> <keywordlink xlink:href="tcm:202-9737-1024" xlink:title="Some Value" xmlns:xlink="http://www.w3.org/1999/xlink">Some Value</keywordlink> </Content>

Automatic activity not performing

非 Y 不嫁゛ 提交于 2019-12-05 21:25:33
Created a workflow with basic as below. Created a calss library, used ProgId, set comvisible true and registerd the assembly in the Tridion server. This is the way i have tested: Created a component Finished the activity from the work list. Navigated to the "Global Work list" and finished the Reviewer activity by myself by choosing the "Back to Author" step and clicked the "Finish" button. The item is not moved to the author. but when i finish the activity again from the global work list, the item moved to author. It seems that my code is not performing the activity because i tried removed the

Unable to save Publication Targets in Tridion 2011 SP1

那年仲夏 提交于 2019-12-05 20:52:03
Upgraded from Tridion 5.3 SP1 to Tridion 2011 SP1. Want to change Httpupload page URL mentioned in Publication Targets, but while saving it Tridion is throwing error 8004D025) Error: Exception of type 'System.EnterpriseServices.TransactionProxyException' was thrown.Unable to save Target type (tcm:0-2-65538).SQLUtilities.GetDatabaseConnectionDataStoreDAL.InitDataStoreBroker.InitDataStoreUtilitiesBL.InitDataStoreTargetTypeBL.UpdateTridion.ContentManager.IdentifiableObject.SaveThroughLegacyBL(String)Tridion.ContentManager.IdentifiableObject.Save(SaveEventArgs)Tridion.ContentManager

Sample event system code for Tridion 2011 SP1

时光怂恿深爱的人放手 提交于 2019-12-05 18:58:59
Right now we are using Tridion 5.3. For number of publications we have event system implemented like sending some mail notification if component is localized, or sending a mail notification when particular activity is completed in workflow process etc. Our current event system is implementation in Visual Basic 6.0, now when we have to rewrite our code we have to use .NET for the same. My question is where I can get some sample code for beginners or documentation how event system can be implemented in Tridion 2011 SP1. These are the top three links when I google for Tridion 2011 event systems:

Tridion 2011 - Filtering XSLT on Formatting Feature window

£可爱£侵袭症+ 提交于 2019-12-05 13:20:36
Currently we are doing Tridion upgrade from 2009 to 2011. I see a strange problem and want to know why it is been updated differently. My Problem: On many of Schema's, we have our own filtering XSLT for content fields (that is, Rich Text Fields). Example: <xsl:stylesheet ... > ... ... ... </xsl:stylesheet> After upgrade to Tridion 2011, I see schema's are updated with the below format <stylesheet... > ... ... ... </stylesheet> Due to this, on the components rich text fields are not appearing. Please let me know the reason behind this behavior. How to fix this problem? I have already fixed this