ページ エディター、アイテム編集セクションに「公開」機能を追加する必要があります。(「その他」セクションの下が理想的です)。これどうやってするの?

まず、コマンド クラスを作成する必要があります。最も単純なバージョンは次のようになります。
using System;
using Sitecore.Shell.Applications.WebEdit.Commands;
using Sitecore.Shell.Framework;
using Sitecore.Shell.Framework.Commands;
namespace my.assembly.namespace
{
[Serializable]
public class Publish : WebEditCommand
{
public override void Execute(CommandContext context)
{
if (context.Items.Length != 1)
return;
Items.Publish(context.Items[0]);
}
}
}
Sitecore.config(またはCommands.config)に新しいコマンドを登録します。
<configuration>
<sitecore>
<commands>
<command name="my:publish" type="my.assembly.namespace.Publish,my.assembly"/>
</commands>
</sitecore>
</configuration>
それで:
/sitecore/content/Applications/WebEdit/Common Field Buttons/Edit related itemPublish related itemClickのプロパティをmy:publishHeader、Icon、Tooltip)コードを変更せずに実現できます。
<command name="webedit:publish" type="Sitecore.Shell.Framework.Commands.PublishItem,Sitecore.Kernel" />
上記のエントリを Commands.config ファイルに追加します。このファイルは include フォルダーにあります。
ありがとう
フェニル