当我创建一个简单的vanilla Phonegap应用程序并尝试在带有IOS 4.2的iPhone 3g上运行它时它不会运行.IOS部署目标设置为4.0,并且所有内容都成功构建
这一切都发生在我使用IOS SDK5安装XCode 4.2之后.在模拟器上运行应用程序是没有问题的.
谁知道我怎么能让它再次运行?
我正在开发一个Java控制台应用程序,它需要遍历Tridion出站电子邮件2011中前端数据库中的所有电子邮件地址,并更改该联系人的某个扩展字段.
我已经浏览了Subscription API文档,以获取有关如何获取所有电子邮件列表的线索,但我已经陷入困境.是否有任何干净的方法通过API执行此操作,而无需借助数据库查询?
这是对此问题的跟进问题:出站电子邮件配置文件API:获取电子邮件地址列表
我正在编写一个简单的示例来探索Audience Management API.我所有的代码都在这里.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tridion.AudienceManagement.API;
namespace OEPasswordEncrypt
{
class Program
{
static void Main(string[] args)
{
StaticAddressBook importAddressBook = new StaticAddressBook(new UserContext());
}
}
}
Run Code Online (Sandbox Code Playgroud)
我在CM服务器上运行时遇到的错误是:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Tridion.AudienceManagement.DomainModel.Utilities.Configuration' threw an exception. ---> Tridion.AudienceManagement.DomainModel.Exceptions.LocalizableConfiguationErrorsException: Loading of the configuration failed. ---> System.Configuration.ConfigurationErrorsException: The RSA key container could not be opened.
at System.Configuration.RsaProtectedConfigurationProvider.ThrowBetterException(Boolean keyMustExist)
at System.Configuration.RsaProtectedConfigurationProvider.GetCryptoServiceProvider(Boolean exportable, Boolean keyMustExist)
at System.Configuration.RsaProtectedConfigurationProvider.Decrypt(XmlNode encryptedNode)
at Tridion.AudienceManagement.DomainModel.Utilities.ConfigurationEncryption.TraverseAndProcessChildren(Dictionary`2 protectedConfigurationProviders, XmlNodenode)
at …Run Code Online (Sandbox Code Playgroud) 我设法得到一个新的功能区组,按照如何在Tridion的功能区中水平地创建自定义按钮中提到的文章
我现在正试图在Gui(隐藏/显示按钮)中发生变化时运行Javascript.
我在配置中有这个:
<!-- In the cfg:groups part -->
<cfg:group name="ClientGuiMods.ContentGroup" description="">
<cfg:fileset>
<cfg:file type="script">/Scripts/CreateRibbonGroup.js</cfg:file>
</cfg:fileset>
<cfg:dependencies>
<cfg:dependency>Tridion.Web.UI.Editors.CME</cfg:dependency>
</cfg:dependencies>
</cfg:group>
<!-- In the ribbontoolbars add part -->
<ext:extension pageid="HomePage" name="Content" assignid="ContentGroupId">
<ext:group>~/Scripts/ContentGroup.ascx</ext:group>
<ext:dependencies>
<cfg:dependency>ClientGuiMods.ContentGroup</cfg:dependency>
</ext:dependencies>
<ext:apply>
<ext:view name="DashboardView">
<ext:control id="DashboardToolbar" />
</ext:view>
</ext:apply>
</ext:extension>
Run Code Online (Sandbox Code Playgroud)
这在Javascript中:
Type.registerNamespace("ClientGuiMods");
ClientGuiMods.ContentGroup = function ContentGroup(element)
{
console.log('RibbonGroupCreated');
Tridion.OO.enableInterface(this, "ClientGuiMods.ContentGroup");
this.addInterface("Tridion.Controls.RibbonItemsGroup", [element]);
};
Run Code Online (Sandbox Code Playgroud)
我已经为this.addInterface()尝试了不同的参数,但它永远不会被调用.这是正确的方法吗?或者是否有另一种方法可以在Home功能区工具栏上调用脚本?