Skip to content

Get-ItemReferrer / Get-ItemReference to include links from standard values item with -Recurse parameter #1302

@kningyi

Description

@kningyi

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

Metadata

Metadata

Assignees

Labels

area-commandsInvolves functions and cmdlets.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions