I wanted my sitecore item to publish only a particular language version. For example, I have english and French, but I only want to publish the French language. My plan is to set the "Publishable To
" fields of that particular language from "Publishing Settings
".
I wanted that way so that if someone accidentally publishes the root item, it won't publish the languages of the child items that shouldn't be published just yet. Is this possible?
I have tried this:
item.Publishing.UnpublishDate = DateTime.Now;
But I this refers to the shared field of the item, not the one from the "Publishing Settings
"