Closed (fixed)
Project:
Lexicon
Version:
7.x-1.8
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Feb 2012 at 01:17 UTC
Updated:
21 May 2012 at 19:30 UTC
i was wondering, for my lexicon page all i am displaying is the term name, but i want them to be linkable, so for example when one is clicked user is taken to the taxonomy page listing the content tagged with that particular term
how is this done ?
Comments
Comment #1
ds1964 commentedSubscribing.
I'd love to be able to do this.
Comment #2
marty2081 commentedWell here the fact that I introduced tpl files to theme the Lexicon module output comes in handy: you can override the tpl file "lexicon-overview-item.tpl.php" in your theme and do whatever you like with the theming of a single term on the Lexicon page. For instance you can make the term title a link to the taxonomy term page as you wanted:
Replace:
<?php print $term->name; ?>by
<?php print l($term->name, 'taxonomy/term/' . $term->tid); ?>Et voila!
Comment #3
marty2081 commentedI can also make linking the term to the taxonomy term page a configurable feature in the module. Let me know if that would be a nice addition to the module. And maybe even better would be to be able to use Display suite to be able to easily influence the term output on the Lexicon page...
Comment #4
ds1964 commentedConfigurable term page links would be a great feature, IMHO -- certainly addresses my use case. Not familiar enough with DS to comment about that.
Thanks for the tip on the template file.
Comment #5
durum commentedThis feature should definitely be implemented imho but tpl has also saved my life.
Comment #6
marty2081 commentedThe term name can now be configure to link to the its taxonomy term page. Available in the dev version, Will be in 7.x-1.9.
Comment #7
durum commentedGreat news! Thanks for the effort.
Comment #8
prezaeis commentedgreat work guys
your awesome
Comment #9
ds1964 commentedThanks!!