tridion

How to make a Custom Deployer to write data to MS SQL database?

为君一笑 提交于 2019-12-08 02:13:31
问题 I've added a custom module in the default processor in config/cd_deployer_conf.xml: <Processor Action="Deploy" Class="com.tridion.deployer.Processor"> ... <Module Type="MyCustomModuleDeploy" Class="com.tridion.new.extensions.MyCustomModule"> </Module> </Processor> The code for the module looks something like this: public class MyCustomModule extends com.tridion.deployer.modules.PageDeploy { static Logger logger = Logger.getLogger("customDeployerFirst"); public MyCustomModule(Configuration

Tridion UGC comment shows author as null

不羁岁月 提交于 2019-12-07 19:44:15
问题 I have configured Tridion for User Generated content, and created a web page using the default/demo template, which uses a text input field to provide the name of the Comment's author. The comments are accepted, but when displayed they show the name of the user as "null". I believe the problem is in storing the name, not in retrieving it. If I create a comment from within the Content Manager UI, and then return to my test web page, the comment is shown, with the name of the moderator. The

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

最后都变了- 提交于 2019-12-07 18:59:30
问题 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. 回答1: Try this way to get the User ID: Tridion.UI

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

谁说我不能喝 提交于 2019-12-07 17:26:39
问题 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"

Automatic activity not performing

自古美人都是妖i 提交于 2019-12-07 14:32:49
问题 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

Access container page of a component in .net based CT

梦想与她 提交于 2019-12-07 10:27:14
问题 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(

Tridion 2011 - Filtering XSLT on Formatting Feature window

倾然丶 夕夏残阳落幕 提交于 2019-12-07 08:49:26
问题 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.

How does the Tridion GUI Extensions CommandSet map to js methods?

我们两清 提交于 2019-12-07 07:17:50
问题 How does the Tridion GUI Extension config map the names to the JS file? For example, I am using Jaime's HelloWorld post with example files. The most important part feels to be the CommandSet section. <cfg:commandset id="HelloWorldCM.Interface"> <cfg:command name="HelloWorldCM" implementation="Extensions.HW"/> <cfg:dependencies> <cfg:dependency>HelloWorldCM.Commandset</cfg:dependency> </cfg:dependencies> </cfg:commandset> Can someone please help me understand the following attributes and how

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

本秂侑毒 提交于 2019-12-07 04:54:29
问题 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? 回答1: 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

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

半世苍凉 提交于 2019-12-07 04:20:42
问题 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