In reference to #8652 , checked if the content selected in the ContentPicker of the ContentMenuItem is published.
This is done by checking for the Content LazyField of the part, which is loaded by ContentManager.Get(id) and so is null whenever the selected ContentItem isn't published.
This is done with dynamic variables to avoid referencing Orchard.ContentPicker.
In reference to #8652 , checked if the content selected in the ContentPicker of the ContentMenuItem is published. This is done by checking for the Content LazyField of the part, which is loaded by ContentManager.Get(id) and so is null whenever the selected ContentItem isn't published.
This is done with dynamic variables to avoid referencing Orchard.ContentPicker.