Is there a way to make menus created with Taxonomy Treemenu use term links that have been altered by Taxonomy Redirect?

Thanks!

Comments

rcrowther’s picture

Assigned: Unassigned » rcrowther
Summit’s picture

Subscribing, greetings, Martijn

rcrowther’s picture

Status: Active » Fixed

Thanks for bringing this to my attention. I didn't know about this module at all.

V5.4 has been wired to work with this. I havn't tested extensively, but I rather like the results, Though I can't conceive where people would use it. I'm interested - what are you using it for?

rcrowther’s picture

Oh, and a quick look at your sites tells me I'm a big fan, straight off. I like sites like that!

jeffschuler’s picture

Awesome! 5.4 works great with Taxonomy Redirect.

Thanks, Robert, for such a fast turnaround and the kind words.

I'm using it on http://cityfresh.org ... Fresh Stop Locations, (in the right sidebar, currently,) is a Treemenu. Summit and Cuyahoga are taxonomy terms for the County vocab. I made a View page to display the nodes of a particular County with a GMap and Views Grid... I use Taxonomy Redirect to override the default term pages with this View.

Maybe there's a more elegant way of doing it?

rcrowther’s picture

Oh, I see, very tidy. Posting a link is invaluable, because I simply can't test for anything but a subset of usage, right from version 1 the possibilities have been too open ended.

The pipeline for the page does seem extended - TM then override, then Views Grid (I've never tried that either), but if you weigh each part, it has purpose. You'd probably have a better knowledge than me - I'd never have thought of this. I suppose I might have gone for (because I've gotten a bit simple like that) trying a targeted node template (render these nodes in this way) - that's more trouble to set up though, and might miss out on some construction and maintenance possibilities?

rcrowther’s picture

You may want to note this, just discovered and gone into the help,

Taxonomy Redirect

If you want to push term links through to custom items, without the fuss of a template, this does the job very nicely.

*** Warning 6x-1.3. It works well when you do it, but you can't go backwards!
If you try to switch redirects off, you'll find any extended URL menus will keep reverting to stock URLs.
You'll need SQL I'm afraid, some variant of,

UPDATE vocabulary SET module='taxonomy';

or I think you can do the same thing through PHPAdmin
***

We claim to be blameless for this?

jeffschuler’s picture

Re: #6 ~ Yes, a long-ish pipeline for a small thing.
I tend to work at a slightly higher level of abstraction than might be efficient in the short term: valuing longer-term manageability by [non-developer] site stakeholders, and relying on caching to mitigate performance issues.

Re: #7 ~ Where did you find this text? --Or is it your own?

rcrowther’s picture

Re: #6 - Well, I like your solution better. As you say, a client's needs include a solid, maintainable product.

Re: #7 - I wrote the text and it's going into Treemenu's help. Since you raised this really interesting possibility, I wanted you to know now.

Do you have any stake in code? To work it's magic, the Redirect module uses a Drupal hook. Now, I've never seen a hook like it, it looks at the module name to see if it triggers. So Taxonomy Redirect stuffs it's own module name in and bingo! It gets a say. But if you remove the Redirects, Taxonomy Redirect doesn't remove it's name. I havn't thought round it conceptually to see if that's right or not, but I posted an issue to their queue.

Here's the punchline. If you try taking the redirects OFF, then the hook is still getting it's claws in and Treemenu can't do much about that. Extended URLs will revert to stock URLs. Unless you do the SQL fix.

Status: Fixed » Closed (fixed)

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