嗨,我在处理CTLModuleMaker,我有这个
{cms_module module="image_mod_test" what="image" where_project="{$item->id}" orderby="priority,id" template="inner_galleries"}注意,where_project,的{$item-> id }不工作,我基本上希望当前迭代对象的id代替{$item->id}。我想它不想接受自以为是的标签,
我该怎么做,
发布于 2011-05-06 13:28:55
双引号中的嵌入变量
backticks包围。来源
所以试试这个:
{cms_module module="image_mod_test" what="image" where_project="`$item->id`" orderby="priority,id" template="inner_galleries"}https://stackoverflow.com/questions/5907415
复制相似问题