When publishing the item given two option "Publish subitem" or "publish related items". When checkbox checked these option then publish item of the subitems or related items are published. If you want to hide these options then follow the below steps.
Hide the Publish SubItem option in the publish dialog box.
Steps:
- Copy Publish.xml file from "sitecore\shell\Applications\Dialogs\Publish" folder to "sitecore\shell\override" folder, so that you don’t mess up original file in case if you want to revert back your changes, just delete the newly copied file of "sitecore\shell\override" folder.
- Find XML code for control in Publish.xml file, something similar to below:<Border ID="PublishChildrenPane"><br /><Checkbox ID="PublishChildren" Header="Publish subitems"/><br /><Checkbox ID="PublishRelatedItems" Header="Publish related items"/></Border>
- Add Visible = "False" attribute to border control like below: e.g.<Border ID="PublishChildrenPane" Visible = "False"><br /><Checkbox ID="PublishChildren" Header="Publish subitems"/><br /><Checkbox ID="PublishRelatedItems" Header="Publish related items"/></Border>
- For default checked or unchecked you can add attribute IsChecked = "True" to the checkbox
<Border ID="PublishChildrenPane" Visible = "False">
<br />
<Checkbox ID="PublishChildren" Header="Publish subitems" IsChecked = "True"/
<br />
<Checkbox ID="PublishRelatedItems" Header="Publish related items"/>
</Border> - Now you see the dilog box like this. No have to option to checked "publish subitems" or "Publish related items".
No comments:
Post a Comment