The category.php script show all articles related to a gived category.
It is very useful for reader if you put in the top of the page the name of the catogory followed by the
list of all his articles. For each article it is possible to see: the title, the author, the link to the
related comments page and the subject.
The subject can contain images.
Accessible data:
An example of code:
<?= $this->category->getName() ?>
<?= $this->category->getDescription() ?><? foreach($this->articles as $article) : ?> <? $URL = URIMaker::article($article); ?><? echo "<?= $article->getTitle() ?>" ?>
<?= $article->getCreatedFormatted() ?> by <?= $article->auhorsNamesConcatenation() ?> | <? $URL = URIMaker::comment($article); $commentsNumber = count($article->commentsPublished()); ?> <? echo " comments ($commentsNumber) "; ?><?= $article->getSummary() ?><? endforeach; ?><?= $this->paginator->renderFullNav(URIMaker::category($this->category)) ?>