How To Prevent Sitecore Items From Publishing
Via The "Never Publish" Field
Start typing to search...
Via The "Never Publish" Field
Sitecore has a standard field for items called Never Publish that allows content authors to prevent publishing. It's powerful functionality, but it has more than a few caveats.


Never Publish effectively removes the item and subitems as far as your code and website is concerned. Some content authors use this functionality more than you would think in order to hide content from being publicly visible.
Any time you're dealing with objects in your code behind, Sitecore is particularly vulnerable to NULL exceptions when you're getting an item from the database. Do your null checks. As you build new functionality that depends on certain Sitecore items, always build with Never Publish in mind. Never Publish is also a great way to test your code for how robust it is in NULL situations rather than deleting the item.
Good luck out there,
Marcel