I wanted to know better way to reset Display Name to empty using PowerShell scripts.
I have written below script..
$item = Get-Item "/sitecore/content/home"
$item.Editing.BeginEdit()
$item["{B5E02AD9-D56F-4C41-A065-A133DB87BDEB}"] = ""
$item.Editing.EndEdit()
which works but I'm not sure its the correct way or not.
I also tried something like $item[Sitecore::FieldIDs::DisplayName] = ""
which doesn't work ..
Please help.
Sitecore 7.5
andSitecore PowerShell Extensions 4.0.0.0