Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • andbeyond Friend
    #178584

    I’m using a modified JAT3 blank template in Joomla 2.5.4

    I’ve set up a most read article module.

    What I would like to do is change the way the module displays so that it uses a Number instead of a bullet in the list. In other words I want it to be an ordered list not an unordered list.

    Ideally I’d also like to style the numbers (bigger, bolder and in color)

    Can anyone get me started.

    Saguaros Moderator
    #459305

    Hi there,

    You could override this module for template:

    Copy this file: modulesmod_articles_populartmpldefault.php

    To templatesja_t3_blankhtmlmod_articles_popular you may need create these 2 folders

    Then open default.php file and replace:
    [PHP]<ul class=”mostread<?php echo $moduleclass_sfx; ?>”>
    <?php foreach ($list as $item) : ?>
    <li>
    <a href=”<?php echo $item->link; ?>”>
    <?php echo $item->title; ?></a>
    </li>
    <?php endforeach; ?>
    </ul>[/PHP]
    with:
    [PHP]<ol class=”mostread<?php echo $moduleclass_sfx; ?>”>
    <?php foreach ($list as $item) : ?>
    <li>
    <a href=”<?php echo $item->link; ?>”>
    <?php echo $item->title; ?></a>
    </li>
    <?php endforeach; ?>
    </ol>[/PHP]

    This override will help your changes to template would not be affected when you update JAT3.

    andbeyond Friend
    #461233

    Thank you so much for this solution. Worked perfectly!

    Sorry not to have replied earlier but I used to get an email message whenever someone posted a reply on a thread I had started. I didn’t get one for this thread however and so I presumed no one had a solution.

    Thanks again!

    Saguaros Moderator
    #461234

    You are almost welcome :p

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Saguaros 12 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum