Hi Mayank, while looking out for a solution to your query I came across a very useful blogpost:
by Mrunal. The blog lists down very clear cut steps as shown below:
Steps:
1. Copy Publish.xml file from “sitecore\shell\Applications\Dialogs\Publish” folder to “sitecore\shell\override” folder, so that you don’t messed up original file in case if you want to revert back your changes, just delete newly copied file.
2. Find xml code for control in Publish.xml file, some thing similar to below:
Before Sitecore 7.5:
1
2
3
|
< Border ID = "PublishChildrenPane" Visible = "false" >
< Checkbox ID = "PublishChildren" Header = "Publish Subitems" />
</ Border >
|
From Sitecore 7.5 onwards:
1
2
3
4
5
|
< Border ID = "PublishChildrenPane" >
< Checkbox ID = "PublishChildren" Header = "Publish Subitems" />
< br />
< Checkbox ID = "PublishRelatedItems" Header = "Publish Related Items" />
</ Border >
|
3. Add Visible=”false” attribute to border control like below: e.g.
1
2
3
|
< Border ID = "PublishChildrenPane" Visible = "false" >
< Checkbox ID = "PublishChildren" Header = "Publish Subitems" />
</ Border >
|
4. For default checked or unchecked you can add attribute IsChecked=”True” to checkbox
1
2
3
|
< Border ID = "PublishChildrenPane" Visible = "false" >
< Checkbox ID = "PublishChildren" Header = "Publish Subitems" IsChecked = "True" />
</ Border >
|
You just need to replicate the last code snippet and then replace the Checkbox for Pubish Subitems by "Publish Related Items".
Hope this helps.