Related Links component for Joomla v1.1
New MVC version v1.1 is now available. We have rewritten this to be more MVC compliant with Joomla!™ api framework. You can still create links to other articles as before but now there is more flexibility in the display and better language and SEF support.
What's New?
- Complete MVC re-write of component and modules
- Rewritten plugin and module to support tab display (mootools jpane driven)
- Integration with Glossary component (client request so we left it in)
- Standard url creation of related items should guarantee correct Itemids everytime
- Language support
- SEF friendly (Joomla!™ native sef only)
Inspired
Instead of using keywords in the meta data - we took inspiration from Jonathon Cameron's Attachment component and made a similar type extension with related links.Now you can edit an article, click a button and add a related link to another article with a single click.
Display options
You can choose whether to render the links within the article (plugin) itself in the footer or as a module in a position.
Installation:
Unzip folder and install the four items through the joomla install interface. Publish the editor button and the plugin. Next time you edit an article you can click a related link button below the WYSIWYG editor to make a link. A component called related links lets you manage your related links in one place.
Documentation:
There is none at the moment. We're really busy. Its a beta - its stable in use on production sites but please back up before install and know that you install this at your own risk.
Advanced Module Usage:
You can use this in a special module capacity but using a module overide in your tempates html folder.
Why do this? This is becuase you may want to only show the links data when there is some :)
How?
- Add the function below to a module.php file in your templates html folder.
- Add the module style class 'hideempty' to the module
- Adjust your template so that the module position where you want this to show has the style set to 'hideempty'
eg <jdoc:include type="modules" name="right" style="hideempty" />
function modChrome_hideempty($module, &$params, &$attribs)
{
if (!empty ($module->content)) :
$style = isset($attribs['modulestyle']) ? $attribs ['modulestyle'] : 'none';
$headerLevel = isset($attribs['headerLevel']) ? (int) $attribs['headerLevel'] : 2;
$functionName = 'modChrome_'.$style;
echo $functionName($module, $params, $attribs);
endif;
}