7

我必须安排一个页面每周自动发布一次。如果盒子功能可以安排它,我看不到任何结果。如何使用 SDL Tridion 2011 API 实现这一点。

4

1 回答 1

9

最好的办法是编写一个使用 SDL Tridion Core Service 的小型命令行或 power shell 脚本,然后使用 Windows 任务计划程序安排它运行。一旦你创建了一个核心服务客户端(这里有很多关于 SO 的例子),你就可以调用 publish 方法,如下所示:

_client.Publish(pageId, publishInstruction, targets, priority, readOptions);

如果您需要更多详细信息,请从以下 URL 下载 CoreService API 并搜索“ICoreService2011.Publish”:

https://www.sdltridionworld.com/downloads/documentation/SDLTridion2011SP1/index.aspx

于 2012-10-09T02:35:46.027 回答