test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • simpletwist Friend
    #184872

    Trying to make the images on the front page just below the slideshow clickable to the article.

    I’m guessing it should be a tweak to the mod_jasidenews tmpl files – but I don’t know what or where.
    Thanks

    This code doesn’t seem to be for this template: http://www.joomlart.com/forums/topic/how-to-make-front-page-module-images-clickable-linked-to-articles/

    Luna Garden Moderator
    #483290

    Hello,

    The images on the front page just below the slideshow is image on JA Sidenew module, in order to make them click-able, go to this file:

    <blockquote>templates/ja_mero/html/mod_jasidenews/default.php</blockquote>

    Find these lines:

    <?php if( $showimage ): ?>
    <?php echo $helper->renderImage ($item, $params, $descMaxChars, $iwidth, $iheight ); ?>
    <?php endif; ?>

    Change to:

    <?php if( $showimage ): ?>
    <a class="ja-title" href="<?php echo $item->link; ?>"><?php echo $helper->renderImage ($item, $params, $descMaxChars, $iwidth, $iheight ); ?></a>
    <?php endif; ?>

    Remember to backup your file before processing.

    chomzz0s Friend
    #484092

    Hello….

    i followed this thread too to solve the same issue.
    i’ve tried the solution and it works, when i clicked the image, it went to the right article. but another issue showed up.

    it becomes like this :

    i’ve changed the html exactly as described on above post..

    a little help, please 🙁

    thanks…


    1. SS_JASidenews_c
    Luna Garden Moderator
    #484099

    Hello,

    In order to remove the space border of each image, please change the code you add from:

    <?php if( $showimage ): ?>
    <a class="ja-title" href="<?php echo $item->link; ?>"><?php echo $helper->renderImage ($item, $params, $descMaxChars, $iwidth, $iheight ); ?></a>
    <?php endif; ?>

    to

    <?php if( $showimage ): ?>
    <a href="<?php echo $item->link; ?>"><?php echo $helper->renderImage ($item, $params, $descMaxChars, $iwidth, $iheight ); ?></a>
    <?php endif; ?>

    Remove the class class=”ja-title” in old code.

    chomzz0s Friend
    #484200

    thank you @luna-garden , it’s done and now they’re perfectly displayed 😀

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

This topic contains 5 replies, has 3 voices, and was last updated by  chomzz0s 11 years, 10 months ago.

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