librelist archives

« back to archive

[bamboo]插件嵌套时的_tag区分问题

[bamboo]插件嵌套时的_tag区分问题

From:
Uno Young
Date:
2012-04-26 @ 02:07
比如managetable插件中又使用了pagination插件,managetable的_tag可以手工设置,而里面pagination的_tag是相同的,如果一个页面有两个managetable时两个pagination就会因为_tag相同发生串扰。

解决办法,在内层插件处

{^
>>>  pagination _tag= "managetable_basic",
改为 pagination _tag= _tag .. "managetable_basic",
tmpl="pagin_select_ajax",
npp=10,
paginurl='/managetable/paginjson/',
datasource=datasource,
content_tmpl="../plugins/managetable/views/items.html",
tbody=tbody,
thead=thead,
edit_url=edit_url,
del_url=del_url

^}