在where-json-string中使用变量有一个小问题。我在另一个MIGX getImageList -template中运行了一个MIGX getImageList。
[[getImageList?
&tvname=`migxProducts`
&where=`{"productGroupName:=":"[[+productGroupName]]","productItemType:=":"product"}`
&tpl=`migxProductsListRowTpl`]]似乎是[+productGroupName]打破了这一切。我需要在where字符串中使用该变量。
有什么问题的线索吗?或者有没有解决方案?
提前谢谢。
发布于 2011-10-18 03:07:57
您是如何获取productGroupName变量的?我想你可能混淆了MODX标签。
如果是当前资源上的电视机,您可能需要使用[[*productGroupName]]。
如果它是从getResources调用中提取的,您可能希望确保前缀为空(使用参数getResources?… &tvPrefix=)或使用默认前缀:[[+tv.productGroupName]]。
我希望这会有所帮助。
https://stackoverflow.com/questions/7795226
复制相似问题