By halloffame on
I'm using Taxonomy Grid Module for my taxonomy pages. One downside of this module is that it doesn't display term description. Now I want you to do just that.
As per the module's author advice (http://drupal.org/node/996238#comment-4198200) I can just override the theme_taxonomy_grid_title_link function.
function theme_taxonomy_grid_title_link($name,$term,$link){
$output="";
$output.=l($name, $link, array('attributes' => array('id' => "tg-text-".$term->tid)));
return $output;
}I'm okay with hacking core so please just post the overridden function here.
Post the solution here and how much your bounty is and let me know your (only) paypal. The first one to post a workable solution will get the bounty.
More info in module's issue queue - http://drupal.org/node/996238
Comments
You can place then in your
You can place then in your themes template.php file
Change YOURTHEMENAME to your themes actual name and it just tacks the description on after the link.
Okay thanks for that but it
Okay thanks for that but it didn't work the way I wanted. It inserts the description along with the children terms like this:
But what I really want is:
Perhaps the theme_taxonomy_grid_show_children?
You could modify that
You could modify that function as
and leave the other theme function alone.
Still not the way I intend it
Still not the way I intend it to be... Looks like both functions won't do it as per module's author advice. Let me clarify..
On your first function this is what I'm getting:
..And for your second function this is what I'm getting:
But then again... This is what I'm trying to achieve.
Perhaps you could take a peak at the module? Though I would also like to point out that 'page-taxonomy_grid.tpl.php' template is available for use. I was able to insert static text into the parent term page the way I want it but no luck with the term description.
I was able to use the following on the normal taxonomy template (page-taxonomy.tpl.php) and print term description but not on page-taxonomy_grid.tpl.php
Can we have the same thing for page-taxonomy_grid.tpl.php?
Looks like @nevets is out...
Looks like @nevets is out... So any takers?
Is there any way we can make this work on page-taxonomy_grid.tpl.php
Hi, If you are willing to
Hi,
If you are willing to hack the code here's the solution for you :
Put the code below in taxonomy_grid.module under function taxonomy_grid_nav($tid = 0) (line no 134) on the second line after $output = '';
Hope that works.
Regards
Sagar
Acquia certified Developer, Back end and Front specialist
Need help? Please use my contact form
@Sagar Ramgade it did the
@Sagar Ramgade it did the trick. Thanks. Post here or PM me your paypal.
Mailed you my paypal id, Hope
Mailed you my paypal id, Hope you recieved it.
Acquia certified Developer, Back end and Front specialist
Need help? Please use my contact form
Yep got it. Check your
Yep got it. Check your email...