我有一个返回类别列表的用户函数(f.e.20,19),我想在tt_news categorySelection
中设置,以指示代码
plugin.tt_news {
categorySelection = user_ttNewsCategoriesByUID
categoryMode = 2
}
在此之前我有用户功能并且正常工作
page.105 = USER
page.105 {
includeLibs = EXT:tt_news/Categorias.php
userFunc = user_ttNewsInCat
}
我正在寻找,但我还没找到。如何在categorySelection
答案 0 :(得分:0)
由于categorySelection
已启用stdWrap
(请参阅reference),您应该可以像这样使用它:
plugin.tt_news {
categorySelection >
categorySelection.cObject = USER
categorySelection.cObject.userFunc = user_ttNewsCategoriesByUID
categoryMode = 2
}
答案 1 :(得分:0)
我找到答案并以这种方式正常工作
includeLibs.userCategories = EXT:tt_news/Categorias.php
temp.catuid = USER
temp.catuid.preUserFunc = user_ttNewsInCat
plugin.tt_news {
categorySelection < temp.catuid
categoryMode = 2
}