Closed (fixed)
Project:
Taxonomy Treemenu
Version:
6.x-5.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2009 at 05:43 UTC
Updated:
29 Oct 2009 at 15:20 UTC
When assigning Taxonomy Treemenu as a menu that the Site Map module should include on the site map page, the link URLs for the menu items are listed using the "ttprnts" paths instead of actual ones. Is this possible to fix?
Comments
Comment #1
rcrowther commentedNot really, not in a way I would like to try and implement, no. Taxonomy Treemenu works by building '/ttrnts' menus then short circuiting the url so it can do all the adjustments to the menu. We'd have to catch the menu INSIDE Sitemap, and route back out to treemenu. Ow.
I had a look at SiteMap though, because it's a neat piece of work. I've got some suggestions,
Use http://drupal.org/project/taxonomy_menu instead. Their menus should work fine with SiteMap. Disadvantage is you'll loose the reasons most users end up here - node rendering, paging, taxonomy efficiency, options...
Page the menu and build from there. ?q=[machine name of the menu] will bring any taxonomy treemenu onto a page. Is there some extra that SiteMap adds which you would like (RSS feed, multiple menus per page)?
Comment #2
jeffschulerHmm...
I want part of the site map to list nodes, by term, for a particular content type (and vocab.)
As far as I can see, Taxonomy Menu only lists the term, not the nodes beneath it. I tried that module first, then found more success doing so with Taxonomy Treemenu.
Your module's code is impressively complex and complete enough that I'll trust your judgment that it can't be done.
If you think of a solution, fantastic. If not, no big deal.
Maybe I'll just build the site map with Panels and Views...
Comment #3
rcrowther commentedLate at night, and I got my question backwards. What I think I should have asked is,
What would you like to see on your sitemap?
Do you need the display as a list - Views or TTM could deliver that, but you'd have to figure out styling, Panels/templates, etc.
or do you need a proper menu? TTM can do that in place of SiteMap, but again, you need to figure out styling, which is why I asked (I'd be up for amending functionality (as opposed to styling, an area I leave to the wild world of Drupal!).
See there's a crateload of functionality in this module that's not enabled. I know SiteMap won't work, but I also know TTM can page menus - is this a styling problem? Or a need to get multiple hunks of data into the sitemap?
Comment #4
jeffschulerI just need a couple lists of nodes by category term.
I'll probably just do it with Views, but it really seems like something that Site Map should be capable of, rather than a way that TTM needs to change to support. I've made something of a request in the Site Map queue here: #348960: Display Nodes.
Comment #5
rcrowther commentedHello jeff,
I had a quick look round the issues. How about approaching the SiteMap people like this?
'Hello. I like your module and I've used it several times in commercial applications. However, using it I have been encouraged to extend my sitemaps into something that refines the site data into a page that works very hard for the user.
I feel there are some unexplored possibilities in the module. For example, Drupal has no stock way of displaying the taxonomy, though there are modules such as Taxonomy Menu, Taxonomy Treemenu, and Taxonomy VTN which address these needs. I can understand how integrating with such complex modules might seem natural to users, but hard to maintain.
But this is no reason not to offer some basic facilities for users to display taxonomy information. For example, if SiteMap were able to display, as a simple list of links, the children of a term or, with as an extra option, the children of all descendant terms, this feature might find significant usage. I see from your issue list that there have been several calls for a feature that more or less amounts to this.'
(Would that address your needs? Myself, I'd go one step further...)
'The facility to add hard-coded links, for links to external/related sites, or unique internal pages such as a contact form, would also be welcome.'
One last thing. I'd not be adverse to patching SiteMap myself, to provide such facilities, particularly as I have a stock of working code for this kind of thing. I couldn't give you a timeframe for that, though.
Comment #6
rcrowther commented...and a tag to this,
I guess you've seen Taxonomy Treemenu dig out some taxonomy and render it to the screen in an organized and modifiable way - an action that Drupal users have been rebutted about by those-in-the-know for years. And you use SiteMap, which is a lovely little tool. So it must seem like an unconstructive block when the maintainer of one says 'I can't get it to work like that', then the maintainer of the other bounces you off the queue without explanation.
Above, I suggested we try the SiteMap maintainers with something constructive.
It's also just occurred to me that Taxonomy Treemenu CAN make valid menus for modules like SiteMap. It's been a long held wish of mine for over eight months. The reason I forgot is because I abandoned the initiative. The idea is kind of radical. I need someone who is a skilled PHP programmer, and more to the purpose, who works with core, who can outline the implications for me.
Have you ever been near a dev maillist? The Drupal one is a little less abrasive than most, but that's a relative statement. My chances of getting a considered reply, with figures, are nill. I've considered everything, Forums, IRS, but I know what the answers will be before I start. I'm in the same position as some user who has just started Drupal, doesn't know why their installation has failed, and gets trashed off a forum with something like 'read the manual'.
I just feel your evident need and very reasonable wish ('the data is there - I can SEE it') deserve a fuller explanation, from me, anyhow.
Rob
Comment #7
rcrowther commentedComment #8
rcrowther commentedSee V7. Basic menus now work in SiteMap. No extended render functions, I'm afraid, as this clashes badly with the Drupal translation and access system. Rob.
Comment #9
jeffschulerWild.
I'll certainly give it a shot when I come back to the site in question.
Thanks for your sincere consideration and [I'm sure] hard work on this!
Comment #10
rcrowther commentedHullo Jeff,
Yeah, it works nice. So I close the issue. Unfortunately, I see you mention nodes, and as they're part of the advanced rendering, they don't appear (just basic terms). When you get back to it, one suggestion that's been floating on the issue queue is that you make a little hard coded Drupal menu to jump a user to something more substantial, like the now rather spectacular expanding menus.
Or use your Views/Panels combination - depends on your site. At least there is not a big hole of possibilities in the middle of your considerations now?
Rob