在我的扩展中,我从content
表中检索到如下文章:
.......
.......
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select('id, catid, title, introtext, attribs);
$query->from('#__content');
$query->where('catid="'.$cid.'"');
$query->where('state="1"');
.......
.......
在这里,我可以检索attribs
正在检索的每篇文章的数据。
有没有一种简单的方法可以从全局设置中检索文章参数(Joomla 中是否有某种静态函数?)还是我需要params
从extensions
表中手动检索?