Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Using Reflector I checked where <code>scEditorWarningTitle</code> (scEditorWarningTitle being the class of the title of the warning message) is being used. I found out that that's in the Sitecore.Client.dll, specifically in <code>Sitecore.Shell.Applications.ContentMnaager.Editor.RenderWarning</code>. That namespace also has a <code>GetWarnings</code> method, which ciks off the <code>getContentEditorWarnings</code> pipeline:</p> <pre><code>using (new LongRunningOperationWatcher(Settings.Profiling.RenderFieldThreshold, "GetContentEditorWarningsArgs pipeline", new string[0])) { CorePipeline.Run("getContentEditorWarnings", args); } </code></pre> <p>Looking at that pipeline, we can see that it does the following (by default, at least in Sitecore 6.5 update 5 - this might be different in other versions of Sitecore):</p> <pre><code>&lt;getContentEditorWarnings&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.ItemNotFound, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.CanReadLanguage, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.HasNoVersions, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.CanWrite, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.CanWriteWorkflow, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.CanWriteLanguage, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.IsReadOnly, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.IsLocked, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.HasNoFields, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.NeverPublish, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.ItemPublishingRestricted, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.VersionPublishingRestricted, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.ShowingInputBoxes, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.FeedIsEmpty, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.RunRules, Sitecore.Kernel"/&gt; &lt;processor type="Sitecore.Pipelines.GetContentEditorWarnings.Notifications, Sitecore.Kernel"/&gt; &lt;/getContentEditorWarnings&gt; </code></pre> <p>Again in Sitecore 6.5 update 5 the only <code>VersionPublishingRestricted</code> warnings I see are:</p> <blockquote> <p>If you publish now, the selected version will not be visible on the Web site because it is not in the final workflow step<br/> If you publish now, the selected version will not be visible on the Web site because today does not fall within its valid date range<br/> If you publish now, the selected version will not be visible on the Web site because it has been replaced by a newer version <br/>If you publish now, the selected version will not be visible on the Web site</p> </blockquote> <p>With the possibility of a description of either </p> <blockquote> <p>Version X will be published instead</p> </blockquote> <p>or </p> <blockquote> <p>No other version will be published</p> </blockquote> <p>All other processors I checked that are in the pipeline have no mention of being replaced by an older version either. <br/> If the older isn't a typo, it'd be worth either looking into the <code>getContentEditorWarnings</code> pipeline or check your rules (which are located in <code>/sitecore/system/Settings/Rules/Content Editor Warnings/Rules</code>)</p> <p><strong>Edit</strong><br/> Right, as @horseman says, in Sitecore 6.6 this is in the <code>VersionPublishingRestrictions</code>:</p> <pre><code> if ((validVersion != null) &amp;&amp; (item.Version.Number &lt; validVersion.Version.Number)) { warning.Title = Translate.Text("If you publish now, the selected version will not be visible on the Web site because it has been replaced by a newer version."); } else if ((validVersion != null) &amp;&amp; (item.Version.Number &gt; validVersion.Version.Number)) { warning.Title = Translate.Text("If you publish now, the selected version will not be visible on the Web site because it has been replaced by an older version."); } else if (IsInWorkflow(item)) { warning.Title = Translate.Text("If you publish now, the selected version will not be visible on the Web site because it is not in the final workflow step."); } else if ((item.Publishing.ValidFrom &gt; now) || (item.Publishing.ValidTo &lt;= now)) { warning.Title = Translate.Text("If you publish now, the selected version will not be visible on the Web site because today does not fall within its valid date range."); } else { warning.Title = Translate.Text("If you publish now, the selected version will not be visible on the Web site."); } </code></pre> <p>So, if there's a valid version, and the valid version number is smaller than the currently selected item's version number you'll get the message:</p> <p><code>If you publish now, the selected version will not be visible on the Web site because it has been replaced by an older version.</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload