tridion

Within a Tridion GUI Extension, how to add an icon to the context-menu?

帅比萌擦擦* 提交于 2019-12-05 09:55:50
How do I add an icon to my Tridion 2011 GUI Extension context-menu item? Is it in the theme or GUI Extension config? Is the size 16px? Yes the icon is 16 x 16. I've always done it using CSS, I hope this explanation makes sense: 1) In your editor.config, you specify the css file and other resources you need <cfg:groups> <cfg:group name="PowerTools.Resources.Base" merge="always"> <cfg:fileset> <cfg:file type="style">/PowerTools/Client/Shared/Theme/styles.css</cfg:file> 2) When you configure the context menu, you have the ID attribute in the ContextMenuItem (shown below as PT_PagePublisher) <ext

Tridion: Template Builder and Visual studio debugging

帅比萌擦擦* 提交于 2019-12-05 09:46:51
We are creating compound templates using Visual Studio 2008. While debugging, we attach to the process of template builder. However we are not able to locate the template builder process ID while attaching the process in VS 2008. This works well on our dev server where VS 2008, CMS(Tridion 2011 SP1) and Template builder are on the same server. But doesn't works if the VS2008 and Template Builder are installed on a machine other than CMS server. Is it a pre-requisite to have all (VS2008, Template builder and CMS) on same server especially for debugging? Bart Koopman When you are on the local

Anguilla - Updating a field's value from a popup?

北慕城南 提交于 2019-12-05 06:46:47
I have a modal popup that appears whenever an editor tries to save a component with some values (a date field in the past in this case). In this popup I show the editor a few options (very similar to the default "Open Shared Item" dialog) and an OK/Cancel button combo. On Cancel I fire the "cancel" event and the editor goes back to the editing screen, all good here. On "OK" I want to change the value of the field to match whatever the editor selected, then save. I tried to use an approach with FieldBuilder and the sample Boris mentioned on this other topic but I can't get to the field from my

Running Custom Deployer from Eclipse

你说的曾经没有我的故事 提交于 2019-12-05 06:16:49
I've gone through Jaime's deployer tutorial . I've successfully created my deployer extension, which when integrating with SDL Tridion, the functionality works exactly as required. But, what i can't get to work is the local debugging / running with the deployer inside eclipse (documented here ) The eclipse based deployer does run. If I drop my zip file into my test incoming folder the zip is picked up and processed. However, the customdeployer code I have written is never entered or executed. I don't get any errors in the 'eclipse' deployer logs, but it always stops on the following line: 2012

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

蹲街弑〆低调 提交于 2019-12-05 02:29:53
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(workitem.Activity.IdRef, readoption); TridionActivityDefinitionData activitydefinition =

How to populate a drop down with values from JavaScript?

百般思念 提交于 2019-12-05 02:19:09
问题 I added a button to the ribbon toolbar button in my extension to the Tridion CMS. On click of the button a popup page will display with two drop downs. By changing the values in the first drop down control I should populate the values for second drop down control. In my case I am using ASP drop down list control. For the time being I will hard code the values to be populated to the second drop down in java script. For this requirement I am using the following code but I am not able to

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

只谈情不闲聊 提交于 2019-12-05 01:10:10
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? Frank van Puffelen 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 to other items in the Tridion Content Manager data model, they have the same properties

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

折月煮酒 提交于 2019-12-05 01:01:49
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? It is possible to set a value in the RenderContext and then retrieve it in the second Dreamweaver template. Before calling RenderComponentPresentation set a render context value

What's the difference between C# Code Fragments and Assembly TBBs?

随声附和 提交于 2019-12-04 16:29:33
问题 I understand C# Code Fragments and .NET Assemblies offer the same functionality for modular template development. We manage the code fragments in the CME and assembly code in Visual Studio, but use both the same way in Template Builder. In terms of code, I can create a C# Code Fragment Template Building Block (TBB), for example: var timeStamp = DateTime.Now.ToString("d MMM yyyy"); package.PushItem("timeStamp from fragment", package.CreateHtmlItem(timeStamp)); I can also create a .NET assembly

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

与世无争的帅哥 提交于 2019-12-04 11:46:45
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(ContentType.Text, keywordField.Value.Key)); } catch(TemplatingException ex) { log.Debug("Exception is " + ex