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

ds1964’s picture

Subscribing.

I'd love to be able to do this.

marty2081’s picture

Priority: Critical » Normal
Status: Active » Needs review

Well 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!

marty2081’s picture

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

ds1964’s picture

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

durum’s picture

This feature should definitely be implemented imho but tpl has also saved my life.

marty2081’s picture

Category: support » feature
Status: Needs review » Fixed

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

durum’s picture

Great news! Thanks for the effort.

prezaeis’s picture

great work guys
your awesome

ds1964’s picture

Thanks!!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.