Elxis CMS Forum
Extensions => Modules => Topic started by: webgift on April 15, 2010, 13:15:07
-
I have 3 modules of mod_FrontPage Enabled and i want to make the title of each module linkable on the categories that they show.
How can i do that ?
-
You have to edit the mod_frontpage.php and add an <a> tag where the module title is shown...
It would be better if you added a new option to select whether the title shoul behave as i link or not..
It's interesting! I'll see if I can code it when I return home...
-
Yes i know what to edit.
The subject here is it :
I have 3 modules of mod_FrontPage Enabled and i want to make the title of each module linkable on the categories that they show.
-
add an <a> tag where the module title is shown...
I'm in office, so I don't have all i need to write it right now, but the basic idea is:
1. Get the given categoty id from mod_forntpage parameters
2. Search the database (using sql statement) to retrieve the seo title for the category
3. Create an <a> tag where the frontpage title is displayed, setting as url the address of the category (e.g. with seo pro enabled: http://www.blah.com/blog/category-seo-title)
If you wait till afternoon I'll post here the exact changes (adding also a new parameter for selecting whether the title should behave as link or not)...
-
Ok i will see what i can do.
I wait your answer too.!
-
We must check the case that there are more than one id's that have been inserted on category text type ;)