简体   繁体   English

如何在joomla中获取文章的类别?

[英]How to fetch categories of an article in joomla?

I have a joomla theme and bringing latest recent 6 articles, now i want to print categories of those articles as well on my theme. 我有一个joomla主题,并带来了最近的6篇文章,现在我也想在主题上打印这些文章的类别。 I'm new in joomla any help please 我是joomla的新手,请帮忙

You should check out any Joomla Module which displays latest articles. 您应该查看显示最新文章的所有Joomla模块。 There you can see how they access category names. 在这里,您可以看到他们如何访问类别名称。 Maybe you can use the module directly. 也许您可以直接使用该模块。 Checkout the helper.php from \\modules\\mod_articles_latest. 从\\ modules \\ mod_articles_latest中检出helper.php。

You don't say what version you are using but it's a standard parameter option to display an article's category. 您没有说您使用的是哪个版本,但这是显示文章类别的标准参数选项。 Look in the long list of options for show/hide category and set it to show. 查看一长串的显示/隐藏类别选项,并将其设置为显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM