-
AuthorPosts
-
January 4, 2011 at 5:16 pm #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 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
January 4, 2011 at 5:45 pm #370054Try 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
January 5, 2011 at 4:36 am #370142Hi 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 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
January 5, 2011 at 9:39 am #370199Try change this::
<img alt=”Sample image” src=”/images/stories/gallery/news.jpg”>
to
<img alt=”Sample image” src=”images/stories/gallery/news.jpg”>
January 5, 2011 at 9:51 am #370208Thanks 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 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
January 5, 2011 at 9:58 am #370209It 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
1 user says Thank You to aman204 for this useful post
-
AuthorPosts
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