What is the use: This will be handy for users using World News II template and running review/news type websites.
Going by our demo website : http://demo.gavick.com/joomla16/jul2011/
Imaging being able to click on following module titles which will take you to their respective categories ( Links you define in module setting ) .
Latest News
More headlines
Editor's Picks
Business
Sport News and so on...
Example is based on The World News II
Step1:
Find File: /templates/gk_twn2/html/modules.php
Find Lines: 25 to 27 which is below
- Code: Select all
if($module->showtitle) {
echo '<h3 class="header"><span>'.$module->title.'</span></h3>';
}
Replace with below
- Code: Select all
if($module->showtitle) {
if($params->get('module_link_switch')) {
echo '<h3 class="header"><span id="module' . $module->id .'"><a href="'. $params->get('module_link') .'">' . $module->title . '</a></span></h3>';
} else {
echo '<h3 class="header"><span id="module' . $module->id .'">' . $module->title . '</span></h3>';
}
}
Save and close / upload your file back to your server.
Step 2. Download and install attached plugin. Enable it from Extensions > Plugins > GK Module Title Links
Step 3. Now simply edit any modules. See "Module Title Links (GavickPro)" on right side.
Step 4. Enable "Enable Module Title Links" and add your link in "Module Header Link".
Links are relative to your live site so entering gallery becomes http://yourwebsite.com/gallery
See you around...