tridion

Is there a way to pass a variable through when calling RenderComponentPresentation? [duplicate]

对着背影说爱祢 提交于 2019-12-06 20:56:42
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Variable setting in Dreamweaver template in SDL Tridion We use RenderComponentPresentation (on Tridion 2009) to render internal and external links so that the code base is in only one Dreamweaver template. It would be helpful if we could pass through an optional CSS Class to use when rendering the link. Any ideas how this could be done? 回答1: It is possible to set a value in the RenderContext and then retrieve it

How to set the next activity from the current automated activity?

大兔子大兔子 提交于 2019-12-06 20:53:55
问题 I am trying to decide the next activity from the current activity (Automatic decision activity)The below is my code. How to set the next activity? public void DebugUserCheck(string workitemid) { CoreServiceSession client = new CoreServiceSession(); SessionAwareCoreServiceClient csClient = client.GetClient(); var readoption = new ReadOptions(); WorkItemData workitem = (WorkItemData)csClient.Read(workitemid, readoption); ActivityInstanceData currentactivity = (ActivityInstanceData)csClient.Read

Can the list of favorites be extended using a Data Extender?

六眼飞鱼酱① 提交于 2019-12-06 19:17:57
问题 We have a data extender that displays the Version number of each item in all list views. Clearly "Favorites" is different, since our data extender doesn't work there. So, can we do a data extender for the Favorites list? If not, what's the alternative to add the version number information to the item for display in the list? 回答1: Yes. The Favorites List can be extended through a DataExtender, similar to how most other data structures can be extended. Since favorites are meant to be shortcuts

How to get current date and time in XSLT 1.0

試著忘記壹切 提交于 2019-12-06 15:49:58
I am using xslt 1.0, I am trying to print current date and time to my node. Below is the sample xslt <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tcm="http://www.tridion.com/ContentManager/5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:em="http://www.emirates.com/tridion/schemas" xmlns:tcmse="http://www.tridion.com/ContentManager/5.1/TcmScriptAssistant" exclude-result-prefixes="em xlink tcmse tcm"> <xsl:output method="xml" version="1.0" encoding="UTF-16" indent="yes"/> <!-- Common XSLT Templates--> <xsl:include href="tcm:228-190524-2048"/> <!--

what is best way to Migrate Content from Tridion 5.3sp1 to 2011sp1

混江龙づ霸主 提交于 2019-12-06 15:14:33
问题 Our migration from 5.3sp1 to 2011sp1 will happen for period of 2-3 months, but content will be added on production during that time in tridion 5.3sp1. After the migration activities we will have migrated system on 2011sp1, But now i want to migrate new content from production(which is still in 5.3) to upgraded DB. Content porter version 2.3(currently being used in 5.3sp1 ) is not supported in 2011. What would be the best approach for this? 回答1: I think best is to redo the database upgrade

how to add a attribute in existing xml using vbscript

て烟熏妆下的殇ゞ 提交于 2019-12-06 09:13:24
I have below xml and I am using VBSript to generate it. <?xml version="1.0"?> <tcm:ListItems xmlns:tcm="http://www.tridion.com/ContentManager/5.0" ID="tcm:481-86880-2" Managed="10682"> <tcm:Item ID="tcm:481-594051"/> <tcm:Item ID="tcm:481-594088"/> <tcm:Item ID="tcm:481-594089"/> <tcm:Item ID="tcm:481-594090"/> <tcm:Item ID="tcm:481-594343"/> <tcm:Item ID="tcm:481-594344"/> <tcm:Item ID="tcm:481-594578"/> </tcm:ListItems> Now I have got a pageURL (/english/destinations_offers/destinations/asiapacific/maldives.aspx), this will be shown after matching the ID for example below pseudocode From

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