powershell 发布一个SDL Tridion页面,即PowerShell。先决条件:http://code.google.com/p/tridion-powershell-modules/和任

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 发布一个SDL Tridion页面,即PowerShell。先决条件:http://code.google.com/p/tridion-powershell-modules/和任相关的知识,希望对你有一定的参考价值。

# Set up a Tridion Core Service client for the Content Manager server cms.server.com.
# The 2013-SP1 label is for the CM server version, other valid entries are 2011-SP1 and 2013.
Import-Module Tridion-CoreService
Set-TridionCoreServiceSettings cms.server.com 2013-SP1
$client = Get-TridionCoreServiceClient

# Set a publish instruction with resolve instruction and render instruction. These are all standard
# instructions, nothing special here but you can use this to create a special publinshing action. 
$publishIntructionData = New-Object Tridion.ContentManager.CoreService.Client.PublishInstructionData
$publishIntructionData.RenderInstruction = New-Object Tridion.ContentManager.CoreService.Client.RenderInstructionData 
$publishIntructionData.ResolveInstruction = New-Object Tridion.ContentManager.CoreService.Client.ResolveInstructionData 

# Set readOptions, again very standard.
$readOptions = New-Object Tridion.ContentManager.CoreService.Client.ReadOptions

# Publish the page tcm:69-6164-64 to target tcm:0-1-65537 with publish priority normal.
$client.Publish("tcm:69-6164-64", $publishIntructionData, "tcm:0-1-65537",
    [Tridion.ContentManager.CoreService.Client.PublishPriority]::Normal, $readOptions)

以上是关于powershell 发布一个SDL Tridion页面,即PowerShell。先决条件:http://code.google.com/p/tridion-powershell-modules/和任的主要内容,如果未能解决你的问题,请参考以下文章

powershell 强制删除SDL Web 8 TTM映射。以前称为decomission发布目标。

powershell 强制删除SDL Web 8 TTM映射。以前称为decomission发布目标。

powershell 连接到SDL Cloud中的SDL Web 8

powershell 使用PowerShell和核心服务淘汰SDL Tridion 2013 SP1发布目标。见http://tridion.stackexchange.com/questions/1

powershell 使用PowerShell和核心服务淘汰SDL Tridion 2013 SP1发布目标。见http://tridion.stackexchange.com/questions/1

powershell 使用PowerShell将SDL Web组件与模式同步