New answers tagged

2 votes

How to take list of http:// or https:// link referenced in our Sitecore content tree using Sitecore Powershell?

You can use this simple approach to start with your code. It will loop through all the items in the content tree with the start node you have given and check for a particular template item. Then for ...
user avatar
  • 1,448
2 votes

How to take list of http:// or https:// link referenced in our Sitecore content tree using Sitecore Powershell?

You can use below PowerShell script for text search $startPath = "web:/sitecore/content/home" Write-Host "Search started $(Get-Date -format 'u')" $linkProvider = [LM.Lightcore....
user avatar
4 votes
Accepted

How to add new version before updating the field values using Sitecore Powershell?

You can use below PowerShell script for create a new item version and update field value # Get All items under particular node with specific template name $items = Get-ChildItem -Path "master:/...
user avatar
1 vote

How to add new version before updating the field values using Sitecore Powershell?

You can follow this approach. # Create a new item version by providing item ID $item = Add-ItemVersion -ID "{56305117-8C9C-4C08-96D5-BB97A8E27419}" -Language en -IfExist Append # Update ...
user avatar
  • 1,448
1 vote
Accepted

How to update the anchor link text in rich text field using Sitecore Powershell?

I have written this script by using this example. This is my Sitecore item with an RTE field and some anchor tags. Now, this is the script I used, and if you want you can modify this as per your ...
user avatar
  • 1,448
0 votes

How to update the anchor link text in rich text field using Sitecore Powershell?

You can use below script to update href value in Sitecore rich text field. In below powershall script I replaced value in Multi-Line Text field. I replaced ifarme from object. $root = gi master:// -id ...
user avatar

Top 50 recent answers are included