<?php
require_once JPATH_SITE . '/components/com_content/models/articles.php';
$articles = new ContentModelArticles();
$articles->setState('filter.category_id',$child->id);
$arts = $articles->getItems();
?>
<?php foreach ($arts as $artid => $art) :?>
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($art->id, $art->catid, $art->language));?>">
<?php echo $this->escape($art->title); ?></a>
<?php var_dump($art->tags->itemTags); ?>
<?php endforeach; ?>
joomla如何通过目录的id获得文章列表
最新推荐文章于 2017-08-09 09:18:09 发布