Console icon indicating copy to clipboard operation
Console copied to clipboard

Get-ItemReferrer / Get-ItemReference to include links from standard values item

Open kningyi opened this issue 2 years ago • 0 comments

Expected Behavior

Calling Get-ItemReferrer / Get-ItemReference should give the same number of links as the Links dialog under the Navigate tab.

Actual Behavior

There were some links missing when I used the powershell code instead of the C# code:

Get-ItemReferrer -Id $item.Id -ItemLink | Show-ListView
$includeStandardValuesLinks = $true
[Sitecore.Globals]::LinkDatabase.GetItemReferrers($item, $includeStandardValuesLinks) | Show-ListView

When I set false for $includeStandardValuesLinks, the links returned are the same as the powershell code.

Is it possible to add a flag to allow the inclusion of links from standard values item?

Please include the version number of SPE and Sitecore.

  • Sitecore 10.0.1
  • Sitecore PowerShell Extensions 6.2.0.34182

kningyi avatar Apr 12 '23 05:04 kningyi