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.
You can create a node view with a term argument which accepts a term name with hyphens instead of spaces, so the term 'foo bar' becomes the argument 'foo-bar'.
You can also create a view of taxonomy terms.
However, the missing link between the two is that you can't get the term view to output links to the node view.
This could either be a new handler, or perhaps more simply, an option in the taxonomy term handler.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1102952.views_.term-field-spaces-to-hyphens.patch | 1.39 KB | joachim |
Comments
Comment #1
joachim CreditAttribution: joachim commentedHere's a patch.
Comment #2
dawehnerWouldn't it make sense to add this to all fields? For example this would be helpful for node title arguments, too.
In general this is a feature request and so only be commited to 3.x
Views 2.x is in a stable state.
Update status.
Comment #3
cartagena CreditAttribution: cartagena commentedI applied the patch and still getting the spaces...anything else I need to do? Thanks!
tried again with newest dev version of views (june 22) and get this:
Hunk #1 succeeded at 24 (offset 3 lines).
Hunk #2 FAILED at 38.
Hunk #3 succeeded at 58 with fuzz 2 (offset 8 lines).
I'll provide any additional information that would be helpful. Thanks again, I am very grateful!
Comment #4
dawehnerCommitted to 6.x-3.x
Sadly the patch didn't applied to 7.x-3.x, so ported that patch.
@joachim The great thing about your issues is that you can directly use the titles of the issue as commit message.