0

我希望根据产品 ID 从补充表中创建动态/跟踪链接。

网址格式为:

https: // site.com/product/{$id}

使用该${clickthrough('my_products',table.id)}方法没有奏效。生成的 URL 在被跟踪时不会转换 ID 参数并导致链接断开。

想知道,点击功能应该是什么以及链接表中包含什么。谢谢,

4

1 回答 1

0

您的 URL 格式需要更新为:

https : //site.com/product/ ${id}

然后您需要添加参数 table.id 以传递给 id (RI 大部分时间会将 id 识别为 table.id,因此这是不必要的,除非您在 <#data> 循环中编码该字段的 URL是别名):

${clickthrough('my_products', 'id=' + table.id)}

或者您可以将 ${id} 更改为 ${table.id} 以直接调用该字段,这样您就不必在点击中对参数进行编码:

https : //site.com/product/ ${table.id}

${clickthrough('my_products')}

于 2019-04-08T23:35:19.013 回答