Tridion 2009 SP1:如何安排内容页面的定期发布? [英] Tridion 2009 SP1: How to schedule a content page for a recurring publishing?

查看:81
本文介绍了Tridion 2009 SP1:如何安排内容页面的定期发布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用Tridion 2009 SP1每周执行两次自动化的xml页面发布.根据我与SDL支持团队的讨论,没有可用的现成功能.另外,我在这里看到的是2011年解决方案,而不是2009 SP1.您能帮我设置自动发布的一些提示吗?

I need to automate an xml page publishing twice every week using Tridion 2009 SP1. As per my discussion with the SDL support team, there is no out of box feature available. Also I have seen a solution here for 2011 but not 2009 SP1. Can you please help me with some pointers for setting up autopublishing ?

推荐答案

发布页面的VBScript文件实际上只是几行.我现在无法对此进行测试,但是使用Tridion对象模型文档(提示:这是一个CHM文件),您应该可以修复在此方面我遗漏的所有内容:

A VBScript file to publish a page is really just a couple of lines. I can't test this right now, but using the Tridion Object Model documentation (hint: it's a CHM file) you should be able to fix whatever I missed on this:

Dim pageId, targetId
Dim tdse, page
pageId = "tcm:12-12-64"
targetId = "tcm:0-1-65537"
set tdse = CreateObject("TDS.TDSE")
tdse.initialize()
set page = tdse.GetObject(pageId, 1)
call page.Publish(targetId, false, false, false)

将其保存在.vbs文件中,您可以使用cscript filename.vbs执行该文件.运行脚本 的用户必须是有效的Tridion用户,并具有足够的权限才能将页面发布到该目标.如果使用的是LDAP,则运行脚本的用户必须是有效的模拟用户,并且在创建TDSE对象后需要调用tdse.Impersonate(ValidUserName).

Save this in a .vbs file, which you can execute with cscript filename.vbs. The user running the script must be a valid Tridion user with enough permissions to publish the page to that target. If you are using LDAP, then the user running the script must be a valid impersonation user, and you need to call tdse.Impersonate(ValidUserName) after creating the TDSE object.

此外,pageIdtargetId值应与您的页面和目标的TCM Uris相匹配.

Also, pageId and targetId values should match the TCM Uris of YOUR page and target.

这篇关于Tridion 2009 SP1:如何安排内容页面的定期发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆