Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • galaxx Friend

    If you Click on an Article’s Image while browsing an Article page, you’ll get back to a Home page: how to remove this link? I definlitely prefer to do this in the default Joomla settings, somehow. Editing each article settings is too painful. Please, kindly check your demo site – click the main article image on this page, for example:

    mpiprojects Friend

    Edit file: root/templates/ja_hotel/html/layouts/joomla/content/image/intro.php

    Find this code:

    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image">
    <a href="<?php echo $link; ?>">
    <?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?>

    Replace with:

    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image">
    <?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?>
    galaxx Friend

    Hi, and thanks! Guess, this solution will also remove a link to an article from article’s intro in a list of categories and acm cards, which is definitely not good. As I’m supporting my project 7/24, on a weekend I’ve created/edited a bunch of layout files, and while a link in a list of categories and acm was not lost, it was removed from an article images. Anyway, thank you once more)

    • This reply was modified 5 years, 9 months ago by  galaxx.
    Saguaros Moderator


    You can try this tweak:
    1) Duplicate above file: root/templates/ja_hotel/html/layouts/joomla/content/image/intro.php to have a new file called intro2.php


    Then edit file like suggested above.

    2) Duplicated this folder: root/templates/ja_hotel/html/layouts/joomla/content/intro/

    to have a new folder called: root/templates/ja_hotel/html/layouts/joomla/content/intro2/ (keep all the files inside ‘intro’ folder in this new folder)

    3) Go to files:

    Look for the line of code which renders the intro image like:

    <?php echo JLayoutHelper::render('joomla.content.image.intro', array('item'=>$item, 'img-size'=>$img_size)); ?>

    change it to:

    <?php echo JLayoutHelper::render('joomla.content.image.intro2', array('item'=>$item, 'img-size'=>$img_size)); ?>


    <?php echo JLayoutHelper::render('joomla.content.image.intro', $displayData); ?>

    change it to:

    <?php echo JLayoutHelper::render('joomla.content.image.intro2', $displayData); ?>

    Now, go to the PHP file of JA ACM Magazine – Featured News : grid module: root/templates/ja_hotel/acm/news-featured/tmpl/grid.php

    Find this line of code (at approx line 93):

    <?php echo JATemplateHelper::render($item, 'joomla.content.intro', array('item' => $item, 'params' => $aparams)); ?>

    change it to:

    <?php echo JATemplateHelper::render($item, 'joomla.content.intro2', array('item' => $item, 'params' => $aparams)); ?>

    Hope this helps.

    mpiprojects Friend

    I use this code to keep the links on category images:

    <?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?>
    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image">
      <?php if (JRequest::getVar('view')=='category'){ ?>
        <a href="<?php echo $link; ?>" title="<?php echo $item->title; ?>">
        <?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?>
      <?php }else{ ?>
        <?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?>
      <?php }; ?>
    <?php endif ?>
Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 4 replies, has 3 voices, and was last updated by  mpiprojects 5 years, 9 months ago.

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