0

I have the following Sitecore Rocks query. I want to make the value of the Background Static Image field match the value of the Background Image field.

update set @#Background Static Image# = @#Background Image# from /sitecore/content/Sites/MySite/Assets/Global/#Hero Items#//*[@@templatename = 'Hero'];

When I run the update it says (131 items affected.). But, the Background Static Image field never gets updated.

This seems to be the correct syntax based on http://vsplugins.sitecore.net/Sitecore-Query-Update-Samples.ashx

4

1 回答 1

1

我想通了。为了让它工作,我必须在值前面加上一个空字符串(两个单引号和一个加号)。

更新集@#Background Static Image# = '' + @#Background Image# from /sitecore/content/Sites/MySite/Assets/Global/#Hero Items#//*[@@templatename = 'Hero'];

于 2016-02-23T14:04:27.993 回答