Sitecore ユーザーがワークフローの最終状態ではないアイテムを開くと、黄色の背景の [クイック インフォ] 領域の上に、次のように表示されます。
If you publish now, the selected version will not be visible on the Web site because it is not in the final workflow step.
特定のワークフロー状態にあるアイテムでこれが発生するのを回避する方法はありますか?
Sitecore ユーザーがワークフローの最終状態ではないアイテムを開くと、黄色の背景の [クイック インフォ] 領域の上に、次のように表示されます。
If you publish now, the selected version will not be visible on the Web site because it is not in the final workflow step.
特定のワークフロー状態にあるアイテムでこれが発生するのを回避する方法はありますか?
この警告を生成するコードは<getContentEditorWarnings>
パイプラインにあります。私はヤンに同意しますが。できるからといって、そうすべきだというわけではありません。そこにあるプロセッサのどれが特定の警告を生成するかはわかりませんが、Reflector で掘り下げるか、消えるまで 1 つずつコメントアウトするだけです。
記述したビジネス ルールに沿って警告を生成するために、ここで特定の手順をコーディングすることをお勧めします。
パイプラインは次のようになります (Sitecore 7 の場合)
<getContentEditorWarnings>
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.ItemNotFound, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.CanReadLanguage, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.HasNoVersions, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.CanWrite, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.CanWriteWorkflow, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.CanWriteLanguage, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.IsReadOnly, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.IsLocked, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.HasNoFields, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.NeverPublish, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.ItemPublishingRestricted, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.VersionPublishingRestricted, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.ShowingInputBoxes, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.FeedIsEmpty, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.RunRules, Sitecore.Kernel" />
<processor type="Sitecore.Pipelines.GetContentEditorWarnings.Notifications, Sitecore.Kernel" />
</getContentEditorWarnings>
このパイプラインの新しい警告をコーディングする方法に関する John West の投稿は、こちら にあります。