Ask

I created via the Articles Category Module a list of articles (just the title of the article). Now i want to add the date of the article but i have the following problem

For ex.
- Man city champion
12-5-2012
- Real Madrid champion
1-5-2012

I want that the date is on the same line as the title
- Man City champion (12-5-2012)
- Real Madrid champion (1-5-2012)

Is this possible? How?


Answer

1/ Open /templates/YOUR_TEMPLATE_NAME/html/mod_articles_category/default.php or /modules/mod_articles_category/tmpl/default.php

Find:

<span class="mod-articles-category-date"><?php echo $item->displayDate; ?></span>

Replace with:

<span class="mod-articles-category-date">(<?php echo $item->displayDate; ?>)</span>

2/ Open your template CSS file in /templates/YOUR_TEMPLATE_NAME/css/ then add at the bottom:

.category-module H4, span.mod-articles-category-date {

display:inline;

}

 

H4 is default heading title