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.
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