Module Title Text As Link?

Support forum dedicated to free and advanced Joomla content presentation module with various layout options and data sources support.
GK User
Fri Nov 19, 2010 10:44 am
Hi what I want to achieve is use the module title as a hyperlink.

For example if I have a module on the frontpage that shows the latest 5 news articles, then I want the title of the module to be a clickable hyperlink to the news section on my site.

I don't mind manually coding it, I don't want anything automated, I just want to hack the module code or use CSS/html override or something to add a link to the relevant page.

What would be the easiest way to achieve this?

Thanks in advance for all help.
User avatar
Senior Boarder

GK User
Tue Mar 08, 2011 8:42 pm
You can do this with ReReplacer from NoNumbers: http://extensions.joomla.org/extensions ... I7fQ%3D%3D

1. Name your module something like "gethyperlinkto_myarticles" - just to make shure you will not have same text anywhere on page.
2. View source of your page and find the phrase "gethyperlinkto_myarticles". Should be something like "<span>gethyperlinkto_myarticles</span>"
2. Create new rule in rereplacer and put:
in "Search":
<span>gethyperlinkto_myarticles</span> <- copied from source of your page
in "Replace":
<a href="HERE PUT A LINK TO YOUR CATEGORY"><span>gethyperlinkto_myarticles</span></a> <-set link manually.
3. Set "Search areas" to "Everywhere".

Remember to add style to "div.moduletable h3 a" to your CSS.

Or you can change default order of blocks in "Article layout", set "Information order" to "1", set it to show only category and stylize this block in CSS to mimic the style of module header (simply copy style of moduuletable.h3 to this div) - and don't forget to hide the original title od the module.
User avatar
Fresh Boarder

GK User
Sun Sep 04, 2011 1:31 pm
Rereplacer is only available in Joomla 1.5, is there a way to do this with Joomla 1.6?

Thanks
User avatar
Fresh Boarder

teitbite
Mon Sep 05, 2011 10:58 pm
Hi

I'm simply using mod_custom before the acctual module with a link transform to looks like a title and hidding titles in both this modules. Works every time :)
User avatar
Moderator


cron