1 – Open your module .xml file example - modules/mod_articles_news/mod_articles_news.xml
2 – Add the following line between the first set of <fieldset name=”basic”></fieldset> tags
<field name="title_link" type="text" default="" label="Title link" description="" />
Save your XML file.
3 – Now go to templates/system/html/modules.php open it & find the xhtml function or find this line “ xhtml (divs and font headder tags) ” here you can find this function
function modChrome_xhtml($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>
<div class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx')); ?>">
<?php if ($module->showtitle != 0) : ?>
<h3><?php echo $module->title; ?></h3>
<?php endif; ?>
<?php echo $module->content; ?>
</div>
<?php endif;
}
& replace with
function modChrome_xhtml($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>
<div class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx')); ?>">
<?php if ($module->showtitle != 0) : ?>
<?php $title_link = $params->get('title_link'); ?>
<h3><?php if($title_link) { ?> <a href="<?php echo $params->get('title_link'); ?>"> <?php } ?><?php echo $module->title; ?><?php if($title_link) { ?></a><?php } ?></h3>
<?php endif; ?>
<?php echo $module->content; ?>
</div>
<?php endif;
}
4 – now you have link area in your module basic parameter add your link :)
Conclusion - Its very simple hack or trick in joomla i hope in joomla! 3.0 joomla add this feature by default
if you get any kind of issue or can’t get right result kindly leave your comment or contact with me thanks