Configurable term link base path
| Project: | SiteMenu |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
In my site, I've got a site map with each term linking to the table of titles of the corresponding nodes rather than to the taxonomy/term page. Each row in the table also contains other fields in addition to the node title -- e.g. 'updated time' etc.
For example:
Site menu
- Term A
- Term B
- Term C
term A links to the table of nodes:
Term A
| title of node1 | dd/mm/yyyy | ... |
| title of node2 | dd/mm/yyyy | ... |
| title of node3 | dd/mm/yyyy | ... |
...
To achieve this, I made a custom view, which is derived from the default taxonomy/term view. The custom view displays the table of the node titles instead of the node teasers.
I made a new field in the site menu settings page that allows the user to configure the base path to which the terms in the site map should link. Thus, I can set the base path so that instead of
taxonomy/term/[tid]
my terms can link to my custom view (or whatever I want):
taxonomy/titles/[tid]
I'm attaching the patch.
| Attachment | Size |
|---|---|
| sitemenu.module.configurableBasePath.patch | 2.34 KB |

#1
After applying the taxonomy_term_path patch the feature described above can be easily achieved using the taxonomy redirect module.
#2