Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • walterandreed Friend
    #158281

    I am trying to balance out this section by having an image in each module. User 1 and 2 were easy since they were made for it, but Latest news doesn’t have a field for text or images. Perhaps I need to go into the backend and access the HTML, unfortunately I have no clue what the file name is for that.

    Thanks for any help

    I have attached an Image if my description wasn’t clear enough.

    aman204 Friend
    #370054

    Try go to ::

    modules/mod_latestnews/tmpl/default.php file and add image code reference like this::

    <img alt=”Sample image” src=”images/stories/demo/sam-1.jpg”>

    above this::

    <ul class=”latestnews<?php echo $params->get(‘moduleclass_sfx’); ?>”>

    and update image path accordingly

    walterandreed Friend
    #370142

    Hi aman, thanks for your quick reply, unfortunately it didn’t work 🙁
    I checked the image path as well, it is the same image path as my other pics but with a different name… you can see the code below
    [PHP]<?php // no direct access
    defined(‘_JEXEC’) or die(‘Restricted access’); ?>
    <img alt=”Sample image” src=”/images/stories/gallery/news.jpg”>
    <ul class=”latestnews<?php echo $params->get(‘moduleclass_sfx’); ?>”>
    <?php foreach ($list as $item) : ?>
    <li class=”latestnews<?php echo $params->get(‘moduleclass_sfx’); ?>”>
    <a href=”<?php echo $item->link; ?>” class=”latestnews<?php echo $params->get(‘moduleclass_sfx’); ?>”>
    <?php echo $item->text; ?></a>
    </li>
    <?php endforeach; ?>
    </ul>[/PHP]

    any ideas?

    aman204 Friend
    #370199

    Try change this::

    <img alt=”Sample image” src=”/images/stories/gallery/news.jpg”>

    to

    <img alt=”Sample image” src=”images/stories/gallery/news.jpg”>

    walterandreed Friend
    #370208

    Thanks for the quick response. I just tried your latest post and it still doesn’t work. I really appreciate you helping me, what are some other methods we can try?

    aman204 Friend
    #370209

    It seems to be working fine for me 🙂

    Other way, You can create a new sub-folder in /template/ja_droid/html folder named::

    mod_latestnews

    and then, copy the above file (default.php) to this folder with specified changes

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

This topic contains 6 replies, has 2 voices, and was last updated by  aman204 13 years, 10 months ago.

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