tridion-2011

Access container page of a component in .net based CT

孤街浪徒 提交于 2019-12-05 12:37:42
We are developing a .net based CT based on Broker query Mechanism (filter): ComponentPresentationAssembler cpAssembler = new ComponentPresentationAssembler(Page ID,Page object); In order to pass the page ID, I need to get the access of page on which the component is present. How can I access the page from package? Since this a CT, a component object would be available in page and not a page object. Tried the following piece of code, but without success: string pageURI = _package.GetValue("Page.ID"); Page objPage = (Page)_engine.GetSession().GetObject(pageURI); This is not working as there is

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

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 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

How to add external JavaScript or CSS files to our Tridion page?

寵の児 提交于 2019-12-03 18:04:04
问题 I have an external JavaScript and a CSS file . I am not getting the idea how to add this file to my page. I am using DWT TBBs for both CTs and PTs . I am writing internal CSS in my page TBB for getting the output for the time being. but I am not getting how to implement JavaScript. Can somebody help me? Should I make these file as component and render them on my page? Is this the correct way? If yes, please tell me the steps to be followed. 回答1: This is a topic for wide discussion, I'll try

How to create a custom button in the ribbon of Tridion [closed]

戏子无情 提交于 2019-12-02 23:56:38
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Please anyone can help me understand, How to create a custom button in the ribbon of Tridion. I need to have a functionality later on click of that button. 回答1: Some good tutorials on getting started creating Tridion GUI extensions: http://yoavniran.wordpress.com/2011/03/03

How to create a custom button in the ribbon of Tridion [closed]

无人久伴 提交于 2019-12-02 13:45:39
Please anyone can help me understand, How to create a custom button in the ribbon of Tridion. I need to have a functionality later on click of that button. Some good tutorials on getting started creating Tridion GUI extensions: http://yoavniran.wordpress.com/2011/03/03/setting-up-a-tridion-gui-2011-extension-in-8-steps/ http://www.curlette.com/?p=279 http://code.google.com/p/tridion-2011-power-tools/wiki/nononsenseguide http://tridionfanboy.wordpress.com/category/javascript/ http://www.curlette.com/?p=401 There are also plenty of existing extensions to be found on SDL Tridion World that serve

How to get tcmid of currently logged user in Tridion?

故事扮演 提交于 2019-12-02 13:23:01
private void Subscribe() { EventSystem.Subscribe<User, LoadEventArgs>(GetInfo, EventPhases.Initiated); } public void GetInfo(User user, LoadEventArgs args, EventPhases phase) { TcmUri id = user.Id; string name = user.Title; Console.WriteLine(id.ToString()); Console.WriteLine(name); } I wrote above code and add the assembly in config file in Tridion server but no console window is coming on login of a user The event you were initially subscribing to is the processed phase of any identifiable object with any of its actions, that will trigger basically on every transaction happening in the SDL

What's the difference between _isEnabled and isEnabled in Anguilla?

 ̄綄美尐妖づ 提交于 2019-12-01 17:43:06
I've been following GUI extensions and notice examples use either _isEnabled or isEnabled , without the underscore. Both seem to work to extend or possibly replace existing functionality. isEnabled For example, the PowerTools base class (which doesn't seem to "extend" existing functionality) has: PowerTools.BaseCommand.prototype.isEnabled = function(selection, pipeline) { var p = this.properties; if (!p.initialized) { this.initialize(); } if (!this.isToolConfigured()) { return false; } if (this.isValidSelection) { return this.isValidSelection(selection, pipeline); } return true; }; A tool can

Is it possible to remove the “Upload MM Component” button from the SDL Tridion 2011 Ribbon

放肆的年华 提交于 2019-12-01 17:33:36
This button causes a lot of problems for my client, as it always uses a predefined Schema. I can't find a way to remove this button with my Editor config. I have done this with other buttons, but these buttons are implemented in some sort of sub-group. On my personal sandbox machine, I tried removing the commented out control in the extract of the ../WebUI/Editors/CME/Controls/Toolbars/Tabs/CreateRibbonPage.ascx file shown below: <c:RibbonSplitButton runat="server" CommandName="NewComponent" Title="<%$ Resources: Tridion.Web.UI.Strings, NewComponent %>" Label="<%$ Resources: Tridion.Web.UI