Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Crafter CMS中的Groovy脚本上,如何修改siteItem并存储更改?_Groovy_Crafter Cms - Fatal编程技术网

在Crafter CMS中的Groovy脚本上,如何修改siteItem并存储更改?

在Crafter CMS中的Groovy脚本上,如何修改siteItem并存储更改?,groovy,crafter-cms,Groovy,Crafter Cms,在groovy rest脚本上,我希望触发对一组页面的一些更改(由Crafter Search返回),因此我首先获取 siteItemService.getSiteItem( pages[1].localId ) 现在,我想更改一些字段并存储它们,但是,如何在CrafterCM中同时执行这两项操作?您不能使用Crafter Engine进行内容更改,因为它是一个交付系统。对于内容更改,您需要使用Crafter Studio及其工作流机制

在groovy rest脚本上,我希望触发对一组页面的一些更改(由Crafter Search返回),因此我首先获取

siteItemService.getSiteItem( pages[1].localId )

现在,我想更改一些字段并存储它们,但是,如何在CrafterCM中同时执行这两项操作?

您不能使用Crafter Engine进行内容更改,因为它是一个交付系统。对于内容更改,您需要使用Crafter Studio及其工作流机制