[MOD] Turn Module Titles in to Links.

GK User
Tue Jun 26, 2012 9:28 am
What this mod does is converts module titles in to links. So when you are creating or editing a module you can add a link to its title.

Image

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".

Image

Links are relative to your live site so entering gallery becomes http://yourwebsite.com/gallery


See you around...
User avatar
Platinum Boarder

teitbite
Fri Jul 27, 2012 11:27 am
Hi

What a great post :) Thank You for that.
User avatar
Moderator

GK User
Sat Jul 28, 2012 3:17 am
No problem at all, attached a plugin which adds extra module parameters for our mod so there is no need to edit module xml files anymore. Now if we can get devs to change module.php file it would be easier for users :D
User avatar
Platinum Boarder

teitbite
Sat Jul 28, 2012 9:57 am
Hi

You better write about it on GitHub. Anyway I think that this plugin should be included in template's code.
User avatar
Moderator

GK User
Sun Jul 29, 2012 7:56 am
It is already done ;)
User avatar
Platinum Boarder

teitbite
Tue Jul 31, 2012 5:55 pm
Hi

Yes. I've seen it 5min after I adviced that :)
User avatar
Moderator

GK User
Wed Sep 19, 2012 5:53 pm
Hi. Templates from version 2.12 has a new feature 'module title as a link' that requires a plugin from files 'temp_name_rest_files_J!16.zip'. My question is: How is the name of this plugin?
Thanks.
User avatar
Fresh Boarder

GK User
Wed Sep 19, 2012 6:00 pm
@o4m,

Plugin is already attached in this topic see first post attachment.

We will update rest_files package with plugin.

See you around...
User avatar
Platinum Boarder

Death_till_Death
Thu Mar 21, 2013 8:37 pm
Works very well, thanks!!!
User avatar

GK User
Sun Jan 11, 2015 9:46 pm
Please update thix topic and the plugin, the attachment does not exist. Thank you.
User avatar
Senior Boarder

teitbite
Sun Jan 11, 2015 10:38 pm
Hi

You can find this plugin in every rest_file package for any template.
User avatar
Moderator


cron