Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

YJ Module Engine - is it possible to link from?

03-20-2014, 08:29 AM
# 1 (permalink)
Hello, firstly I posted here because I could not find a section in the extensions section of the forum to cover the YJ Module Engine.

If you visit the site (under construction) linked to you can see that I'm using the YJ Module Engine to display four news articles. When you mouseover these you can see the orange highlight and the cursor changes from pointer to finger.

However, I cannot for the life of me work out how to link these to other articles, so that you can click through.

Is this even possible? Is there perhaps a better way to achieve what I want to achieve without using the YJ Module Engine?

Thank you,


Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: Joomla 3.x

MySQL Version: 5.x

PHP version: 5.x

Link to installation: Brightside Stove Installations - Stove Installers for Hertfordshire and Essex

Have you edited any files? If yes tell us which ones.: Yes

Is this personal or client website?: Client
03-20-2014, 09:14 AM
# 2 (permalink)
YJME is free and located under free extensions forum. I moved it for you.

It is already linking to article published. Thing is that article category is not published in the menu so you stay on homepage ,

when you click , scroll down
03-21-2014, 05:35 AM
# 3 (permalink)
I right, I see. Yes, that makes sense, but not really want I wanted. Is there an extension that will do what I would like to do out of your many offerings Neo?
03-21-2014, 05:37 AM
# 4 (permalink)
Actually, news pop may do what I would like to do do you think? Or will it only link to multiple articles?
03-21-2014, 09:07 AM
# 5 (permalink)
I am bit confused as to what you need. Do you need to link to something else other than article displayed?
There is always an option on creating own module template and use it as you wish.

By default all YJME based modules and newsflash modules link to the article displayed.
03-21-2014, 09:36 AM
# 6 (permalink)
Yes, I think so Neo. If you take a look now I have put a different extension in above the YJ Module Engine that shows what I would like to do (although it has no option to add text).

I would like a click on one of the images to take you to a different article,the article in the module is used to set the linking text and image only - it simply links to a different article with the full content and images.

Using a category sort of works (it puts the article in its own page) but you cannot choose to link to an alternative article.

Do you have an extension that would do what I need to do at all?

Thanks for your time thus far,

03-21-2014, 09:37 AM
# 7 (permalink)
"There is always an option on creating own module template and use it as you wish"

Are there any guides to doing this? Would it achieve what I need to achieve do you think (linking to an alternative article).
03-21-2014, 09:44 AM
# 8 (permalink)
Oh, wow! I wouldn't really know where to start with this. The article I would want to link to would be (filepath): index.php?option=com_content&view=article&id=123&I temid=329 - this could be replaced with different file paths I guess if I published four versions of the module in the same position in the template (adv1) and created unique file paths for each.

* @package YJ Module Engine
* @author Youjoomla.com
* @website Youjoomla.com
* @copyright Copyright (c) 2007 - 2011 Youjoomla.com.
* @license PHP files are GNU/GPL V2. CSS / JS / IMAGES are Copyrighted Commercial
//Title: $yj_get_items['item_title']
//Author: $yj_get_items['item_author'] = username || $yj_get_items['item_author_rn'] = real name
//Image: $yj_get_items['img_url'] = use isset to check before output
//Intro text: $yj_get_items['item_intro']
//Create date: $yj_get_items['item_date']
//Category: $yj_get_items['cat_title']
//Item url: $yj_get_items['item_url']
//Author url: $yj_get_items['author_url']
//Cat url: $yj_get_items['cat_url']
//Foreach to be used = foreach ($main_yj_arr as $yj_get_items){ echo each part here }

/*Image sizing: The images are inside div that is resizing when you enter the values in module parameters. this way there is no image disortion. For those who dont like that , you can add this
style="width:<?php echo $img_width ?>;height:<?php echo $img_height ?>;"
within image tag after alt="" (space it please) and have the images resized */

defined('_JEXEC') or die('Restricted access'); ?>
<!-- Powered by YJ Module Engine find out more at Professional Joomla Templates,WordPress Themes - Joomla Templates Club -->
<div class="yjme_holder">
$numberof = count($main_yj_arr);
foreach ($main_yj_arr as $key=> $yj_get_items):
if($key == $numberof-1):
$last = ' last';
$last = '';
<div class="yjme_item">
<div class="yjme_item_in yjmeitem<?php echo $yj_get_items['item_id']?><?php echo $last ?>">
<?php if ($show_title == 1 ): ?>
<a class="item_title" href="<?php echo $yj_get_items['item_url'] ?>">
<?php echo $yj_get_items['item_title']?>
<?php endif; ?>
<?php if (isset($yj_get_items['img_url']) && $yj_get_items['img_url'] != "" && $show_img == 1) :?>
<div class="imageholder" style="width:<?php echo $img_width ?>;height:<?php echo $img_height ?>;float:<?php echo $align ?>;">
<a class="item_image" style="width:<?php echo $img_width ?>;height:<?php echo $img_height ?>;" href="<?php echo $yj_get_items['item_url'] ?>" >
<img src="<?php echo $yj_get_items['img_url'] ?>" alt="<?php echo $yj_get_items['item_title']?>" />
<?php endif;?>
<?php if ($show_intro == 1 ):?>
<p class="item_intro">
<?php echo $yj_get_items['item_intro']?>
<?php endif; ?>
<?php if ($show_cat_title == 1 || $show_date== 1 || $show_author == 1 ):?>
<div class="clearnf"></div>
<div class="item_details">
<?php if ($show_cat_title == 1):?>
<div class="item_category">
<a href="<?php echo $yj_get_items['cat_url'] ?>">
<?php echo $yj_get_items['cat_title']?>
<?php if($show_cat_title == 1 && $show_date == 1):?> - <?php endif; ?>
<?php endif; ?>
<?php if ($show_date == 1):?>
<div class="item_cdate">
<?php echo $yj_get_items['item_date']?>
<?php endif; ?>
<?php if($show_author == 1) : ?>
<div class="item_author">
if($show_cat_title == 1 || $show_date == 1):
$space = ' - ';
$space = '';
if($author_name == 1) :
$author = $space.'by '.$yj_get_items['item_author'];
$author = $space.'by '.$yj_get_items['item_author_rn'];
<?php if($item_source == 1) : ?>
<?php echo $author ?>
<?php else: ?>
<a href="<?php echo $yj_get_items['author_url'] ?>">
<?php echo $author ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php if ($show_read == 1 ): ?>
<a class="item_readmore" href="<?php echo $yj_get_items['item_url']?>">
<?php echo JText::_('READ_MORE_TEXT');?>
<?php endif; ?>
<?php endforeach; ?>
03-21-2014, 09:55 AM
# 9 (permalink)
You must know html and php to edit that bud. Sorry but there is no way around it.

Comments on top give you info on var used.

As for linking to alternative article , no , you cant , unless you remove all calls for the a tag from that file and add link to alt article trough the news item itself , and set Allow html tags in module manager
03-21-2014, 10:00 AM
# 10 (permalink)
So not a case of simply changing...

<a class="item_image" style="width:<?php echo $img_width ?>;height:<?php echo $img_height ?>;" href="<?php echo $yj_get_items['item_url'] ?>" >


<a class="item_image" style="width:<?php echo $img_width ?>;height:<?php echo $img_height ?>;" href="index.php?option=com_content&view=article&id =123&I temid=329" >

Thread Tools
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

Members Login