json字符串中的MODx MIGX变量

时间:2011-10-17 14:27:56

标签: json modx

我在where-json-string中使用变量有一点问题。 我正在其他MIGX getImageList -template中运行MIGX getImageList。

[[getImageList? 
&tvname=`migxProducts` 
&where=`{"productGroupName:=":"[[+productGroupName]]","productItemType:=":"product"}` 
&tpl=`migxProductsListRowTpl`]]

似乎是[[+ productGroupName]]打破了这一切。我需要在where字符串中使用该变量。

有什么问题或是否有解决方案的任何线索?

提前致谢。

1 个答案:

答案 0 :(得分:0)

你是如何抓住你的productGroupName变量的? 我想你可能会混合MODX个标签。

如果它是当前资源上的电视机,您可能需要使用[[*productGroupName]]

如果它是从getResources调用中提取的,您可能需要确保前缀为空(使用参数getResources?… &tvPrefix=)或使用默认前缀:[[+tv.productGroupName]]

我希望这会有所帮助。

相关问题