[英]typo3 tt_news Retrieve Category ID in template
Im stuck with a problem and hope you can help me out. 我遇到了问题,希望您能帮帮我。 I am using tt_news and I need to retrieve the ID of the category directly in the LATEST view.
我正在使用tt_news,需要直接在LATEST视图中检索类别的ID。 ###NEWS_CATEGORY### gives me the name of the category, but I need the corresponding ID.
### NEWS_CATEGORY ###为我提供了类别的名称,但我需要相应的ID。 Is this possible?
这可能吗?
Thank you 谢谢
I helped myself and used generic markers if anyone needs it: 我帮助自己,并在需要时使用了通用标记:
plugin.tt_news.genericmarkers {
catid = RECORDS
catid {
tables = tt_news_cat
source.data = register:newsCategoryUid
conf.tt_news_cat = TEXT
conf.tt_news_cat.field = uid
}
}
It should be enough to pass the register like this: 这样传递寄存器应该就足够了:
plugin.tt_news.genericmarkers {
CATID = TEXT
CATID {
value = {register:newsCategoryUid}
insertData = 1
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.