Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, this module seems developing great. It makes it possible to show taxonomy terms in correct hierarchy!
What would be great if the url underneath the different hierarchy levels could be altered as admin.
So level 1 has url ../continent/.. level 2 has url ../country/.. etc.
Would this be possible with this module please?
Thanks a lot in advance for considering this.
Greetings, Martijn
Comments
Comment #1
rcrowther CreditAttribution: rcrowther commentedI think you have explained the module in one sentence!
Can I try to explain your request in my own words?
You would like the URL itself (NOT an alias) to be cutomised?
So
would become something like,
Comment #2
Summit CreditAttribution: Summit commentedYes! and per vocabulary, and per level the ability to fill in ''continent" or other word as admin?
Comment #3
rcrowther CreditAttribution: rcrowther commentedhokay!
1) If you want to make nice URLs without aliases, that's great! Because I get really good people on my queue, so nobody has mentioned it yet, but aliases are CONCEPTUALLY a problem with extended URLs and Taxonomy.
2) It's trickier than you might think. The /ttm/ is there to save this module from crazy people calling their vocabulary 'category', or even worse, somebody who is new to all of this using the word 'term'! Imagine the caos!
3) The coding is fairly easy (though extensive). You can't just slot in another bit of text, though. Each time you want to change a root like that, the module has to generate another menu item and push it into poor old Drupal.
I think we must have a unique name at the root. I am considering how to change this in admin.
Here's good. Due to the way this module positively builds a menu (as opposed to deriving it), naming by menu is really easy. In fact, if you use the extended URL option I've added, the menu name sort of works like this.
I know how nice it would be to have a URL,
but it's asking for disaster round multiple hierarchy menus and user input. Treemenu V4 got really close to this, but the result was unacceptable for alias users.
Summary,
Changing the URL root: medium level priority for consideration.
Levels: already part of long term plans for the amazing, they said it couldn't be done, 'we follow while others lead', very good, sci-fi URL options future.
Comment #4
rcrowther CreditAttribution: rcrowther commentedRight, I've thought about this. I need to loop through the unconsidered alias and Pathauto integration, and make some design decisions. So postponed. But some similar functionality is on the wish list for this module.
Comment #5
Summit CreditAttribution: Summit commentedHi, sorry it is postponed, it would really make drupal possible for templating on different levels.
- With ctools/delegator you can make pages.
- The pages can become templates on different taxonomy level
- The Taxonomy levels continent, country, province and city can than have different content related to the level of taxonomy.
When the pages could be identified through the names before the taxonomy names, through this module it would be great!
Hierarchy working with drupal will with this have a great leap forward!
Please reconsider postponing this!
greetings, Martijn
Comment #6
rcrowther CreditAttribution: rcrowther commentedAh - that is your wish?
While I have postponed this issue, for technical and time reasons, Treemenu can template by Taxonomy. You must be prepared to use a small amount of code in a preprocessor function. Also, you will have to construct your own page templates, I think. In return, you can often target whole menus, taxonomy terms (not just single nodes), and whole term descendant branches (which is quite spectacular, if confusing).
You need to look at the Help page 'code examples to help in styling Treemenus'. It should be more clearly organised, but time... time...
If you try this method, please post back, I'd be very keen to know how you get on.
Constructing an API for ctools/delegator sounds interesting - but I'll have to postpone that too - sorry, but that would be a long term priority (crikey, WHEN will someone help me out with this module?).
Yes, heirachy with templating would be fabulous, which is why I supplied all the code!
I work with a small video group called creakDV - and I use our site as a live testbed sometimes. Niether myself nor my friends have had a chance to update the site, so its a mess, but you can clearly see templating by Taxonomy
www.creakdv.co.uk
Rob
Comment #7
rcrowther CreditAttribution: rcrowther commentedAlso,
If you don't want to use templates/preprocessors, through developers such as yourself I'm gaining a good idea why.
As it happens, V4 of this module did as you asked. But the long URLs scared alias users (and the experimentatl nature was a bit broken too). See the module's internal help on the Ambiguous URL issue. Using the URL itself is not good. It makes a potential disaster where there are menus with user input. A URL needs something unique
But that doesn't mean - hey it can't be done. This feature is a long held wish of mine.
The plan is to see if I can coax the URL system into letting me work the menus, then optionally tag it with the taxonomy path for users like you and me. That way we get descendant term handling, of a kind, but good enough for most folks. It's a longish job, though, the titling, access and loading need to be confirmed working, and the re-written background fucntions asserted.
Rob.
Comment #8
Summit CreditAttribution: Summit commentedHi,
A great 2010 for you Rob!
Any progress on this please?
Greetings,
Martijn
Comment #9
rcrowther CreditAttribution: rcrowther commentedIn my head, yes! Pathauto integration and/or an addon module with the template code (thus providing a plugin solution) would do the trick, once I've cleared the URL issues (which were progressing rapidly, ideas were already in place in dev).
Practically, no. I can't even maintain Treemenu at the moment. So we are looking at six months, and a DRUPAL V7 edition as a timeline. Ouch! but that's the truth.
Rob
Comment #10
Summit CreditAttribution: Summit commentedHi Rob,
Still waiting for a drupal solution for hierarchical websites using termdepth as hierarchy.
I saw a grouppost on this today, and responded to it, see: http://groups.drupal.org/node/101374
May be you could join forces?
greetings,
Martijn