tridion

How to set content to a component without loading XML in SDL Tridion using core services?

守給你的承諾、 提交于 2019-12-02 13:06:38
How do I set content to a component without loading XML in SDL Tridion using core services? If you are looking to create a regular Component through the Core Service, you can avoid having to craft the XML yourself by using this helper class . With this you can create a Component like this: schemaFields = client.ReadSchemaFields("tcm:1-2-8", true, DEFAULT_READ_OPTIONS); component = (ComponentData)client.GetDefaultData(ItemType.Component, "tcm:1-57-2"); fields = Fields.ForContentOf(schemaFields); component.Title = "Name of component (created at "+ DateTime.Now + ")"; fields["Title"].Value =

How can a Tridion command extension find out the command it extends?

♀尐吖头ヾ 提交于 2019-12-02 02:37:21
问题 Tridion's user interface allows you to extend specific commands, which is a great way to modify the behavior of certain existing commands. In the configuration file of the editor this is done with a section like this: <ext:commands> <ext:command name="TextUnderline" extendingcommand="MyTextUnderline"/> <ext:command name="TextStrikethrough" extendingcommand="MyTextStrikethrough"/> I am working on a generic command extension class that can be used to modify the behavior of a number of commands:

Looping and TemplateRepeatIndex in Dreamweaver template

不问归期 提交于 2019-12-01 18:02:20
I am having some trouble with accessing variables, here in this case Setvariable. When I go inside loop, variable doesn't exists. Anyone have any insight on this. Appreciate your help Below is my code section in template. Would you please help when you get a chance? Thanks. <!-- TemplateBeginRepeat name="Component.Fields.section" --> @@SetVariable("columnSectionIndex", "${TemplateRepeatIndex}")@@ Inline Value @@GetVariable("columnSectionIndex")@@ Variable value can be accessed <!-- TemplateBeginRepeat name ="Field.links" --> Inside Loop Value @@GetVariable("columnSectionIndex")@@ //Not getting

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

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

有些话、适合烂在心里 提交于 2019-12-01 16:56:21
问题 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

How can I implement WCF Transaction support on custom class using CoreService?

荒凉一梦 提交于 2019-12-01 16:23:39
I wrote a class to assist in adding & removing Destinations to a Publication Target using the Core Service. Destinations are normally exposed as a string (with XML content) via the Core Service, so I wrote my own wrappers around that, etc. I now have a situation where I need to update 2 publication targets and thought it would be cool to use a transaction scope to ensure that both targets are updated at the same time. I am however struggling with implementing this. Code working (using standard CoreService WCF client): TransactionOptions txOptions = new TransactionOptions { IsolationLevel =

Looping and TemplateRepeatIndex in Dreamweaver template

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 16:09:25
问题 I am having some trouble with accessing variables, here in this case Setvariable. When I go inside loop, variable doesn't exists. Anyone have any insight on this. Appreciate your help Below is my code section in template. Would you please help when you get a chance? Thanks. <!-- TemplateBeginRepeat name="Component.Fields.section" --> @@SetVariable("columnSectionIndex", "${TemplateRepeatIndex}")@@ Inline Value @@GetVariable("columnSectionIndex")@@ Variable value can be accessed <!--

How to set IsPublishedTo status on a Tridion Component?

纵饮孤独 提交于 2019-12-01 06:47:10
After a Tridion CMS Database restore from another environment we cannot unpublish Components from the Broker. If we publish to the Broker then we can unpublish. We want to set the IsPublishedTo status to the publish targets available in the new envioronment. The TOM API has a SetPublishedTo method available for Pages and Component Templates but not Components. How can I set the PublishedStatus for the Components? Is it possible using UpdateXML or do we need to perform database black magic? I use the following C# based code in a command line tool for switching the PublishStates of all my items

Which API can I use for writing SDL Tridion workflow activities?

与世无争的帅哥 提交于 2019-12-01 05:44:10
I would like to create workflow using SDL Tridion 2011 SP1, and i am going through the documentation in the live content portal. I have few questions when I go through the documentation as follows: Can I use C# (TOM.NET) for automatted activities/decisions? or should I use only VBScript (TOM) ? Is there any sample code given in the live content portal for automatted activity/decision? If C# (TOM.NET) is not allowed to use in workflows, why are its namespace/class/member references given there in TOM.NET API file? If VBScript only allowed to use in WF, where can I get code/TOM API reference in