Quote

We're also available for Custom Joomla Development

Hire us now

Changed Look and feel for Related items

Hi

Step 1) I have installed Related Items Extended module. Please check - https://www.screencast.com/t/JAbaqDImw

Step 2) I have changed “look and feel” for Related items.

And created similar for that – https://www.screencast.com/t/8jvQqLA4Pvu

Please explain me which file are changes?

Our site Url - http://www.guru99.com/java-platform.html
       
  • Replied by admin on Wednesday, February 08 2017, 11:23 PM · Hide· #1
    Hi, unfortunately the module supported max 3 columns. To make it support 4 column you need to make change to both of php and css file. If you're willing to do that, you can do that by doing a template override. Copy the file ../modules/mod_relateditems_xtd/tmpl/default.php to ../templates/your_template_name/html/mod_relateditems_xtd/default.php and edit it using your php editor.
    • lbarrioc - more than a month ago
      Hi
      Any clue about php code needed to do that?
      Thanks
    • admin - more than a month ago
      @lbarrioc the code is located under both of two php files above. Unfortunately, I can't give you a clue because it will need a quite a lot of code changes. Sorry about that
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by developerguru99 on Saturday, February 11 2017, 01:11 PM · Hide· #2
    Hi

    How can I add parameters like “on click event” in Image. For Ex. –

    <a href="/java-tutorial.html" onclick="ga('send', 'event', 'Related_articles', ‘articles name', 'articles name');><img src="/java" /></a>

    to all links generated via your module so that I can do tracking in google analytics?

    Please help me.
  •  
  • Replied by admin on Sunday, February 12 2017, 12:40 AM · Hide· #3
    HI, isn't it already answered on this post : https://www.templateplazza.com/forum/articles-has-no-image-by-default-image-display#reply-10260?
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by developerguru99 on Thursday, February 16 2017, 11:50 AM · Hide· #4
    Hi

    For this ticket number #10260 is reply from “onclick event” for add in the hyperlink. Not in <Image> Tag.

    my Requirement is

    How can I add parameters like “on click event” for <Image> Tag. - https://www.screencast.com/t/P4NM9CJz

    Our site url is - http://www.guru99.com/assertions-in-jmeter.html
  •  
  • Replied by developerguru99 on Saturday, February 18 2017, 04:19 AM · Hide· #5
    Hi

    Any Update?

    How to remove hyperlink for category in Related articles. - https://www.screencast.com/t/Zw1XAMM2p
  •  
  •  
    Replied by admin on Saturday, February 18 2017, 12:04 PM · Hide· #6
    Hi, you just need to add the <a> tag for the image part on the default.php

    find this code on the file (there's two position) :
    <div class="image-feat">
    			<?php if ($link_to_item) { ?><a href="/<?php echo $item->route; ?>"><?php } ?>
    				<?php
    				if ( $item->isIntroImage ) { ?>
    				<img src="/<?php echo rixtdResizeImageHelper::getResizedImage($item->image, $thumb_width, $thumb_height, $thumb_option); ?>" alt="<?php echo $item->imgalt; ?>" title="<?php echo $item->imgtitle; ?>" />
    				<?php } elseif ( !$item->isIntroImage && $item->isFulltextImage ) { ?>
    				<img src="/<?php echo rixtdResizeImageHelper::getResizedImage($item->image, $thumb_width, $thumb_height, $thumb_option); ?>" alt="<?php echo $item->imgalt; ?>" title="<?php echo $item->imgtitle; ?>" />
    				<?php } else /*if( empty($introImage) && empty($fulltextImage) && !empty($item->image) )*/ { ?>
    				<img src="/<?php echo rixtdResizeImageHelper::getResizedImage($item->firstImage, $thumb_width, $thumb_height, $thumb_option); ?>" alt="<?php echo $item->imgalt; ?>" title="<?php echo $item->imgtitle; ?>" />
    				<?php } ?>
    			<?php if ($link_to_item) { ?></a><?php } ?>
    		</div>
    and change that to
    <div class="image-feat">
    			<?php if ($link_to_item) { ?><a href="/<?php echo $item->route; ?>"><?php } ?>
    				<?php
    				if ( $item->isIntroImage ) { ?>
    				<a href="/<?php echo $item->route; ?>" onclick="ga('send', 'event', 'Related_articles', ‘<?php echo $item->title; ?>', '<?php echo $item->title; ?>');"><img src="/<?php echo rixtdResizeImageHelper::getResizedImage($item->image, $thumb_width, $thumb_height, $thumb_option); ?>" alt="<?php echo $item->imgalt; ?>" title="<?php echo $item->imgtitle; ?>" /></a>
    				<?php } elseif ( !$item->isIntroImage && $item->isFulltextImage ) { ?>
    				<a href="/<?php echo $item->route; ?>" onclick="ga('send', 'event', 'Related_articles', ‘<?php echo $item->title; ?>', '<?php echo $item->title; ?>');"><img src="/<?php echo rixtdResizeImageHelper::getResizedImage($item->image, $thumb_width, $thumb_height, $thumb_option); ?>" alt="<?php echo $item->imgalt; ?>" title="<?php echo $item->imgtitle; ?>" /></a>
    				<?php } else /*if( empty($introImage) && empty($fulltextImage) && !empty($item->image) )*/ { ?>
    				<a href="/<?php echo $item->route; ?>" onclick="ga('send', 'event', 'Related_articles', ‘<?php echo $item->title; ?>', '<?php echo $item->title; ?>');"><img src="/<?php echo rixtdResizeImageHelper::getResizedImage($item->firstImage, $thumb_width, $thumb_height, $thumb_option); ?>" alt="<?php echo $item->imgalt; ?>" title="<?php echo $item->imgtitle; ?>" /></a>
    				<?php } ?>
    			<?php if ($link_to_item) { ?></a><?php } ?>
    		</div>
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments