kevinobee / Sitecore.Ship

Ship provides a CI service layer for Sitecore
MIT License
71 stars 61 forks source link

Add the ability to configure item Publish options, such as deep, smart or related items options, when publishing a list of items. #50

Open sgisbert opened 9 years ago

sgisbert commented 9 years ago

I've extended the "ItemsToPublish" class with three more parameters to control how an item is published: publish subitems (deep), compare revisions (smart) and publish related items or not.

I've added them to the constructor with the same values that are being used now, to keep backwards compatibility. Then, just changed the hardcoded "true" values is method call Publishing.PublishManager.PublishItem(), and added the related items one, that was missing.

This way, the caller can widely control how the items in the list provided are being published.

Hope this helps. Regards.


This change is Reviewable