worked perfectly for me, except for one detail-
page titles for the views for the override terms displays are missing...
they are also missing on the default taxonomy view, switch/taxonomy/term/%
please advise if you can-
i love this lightweight but powerful way to reroute taxonomy to different views-
its clean and easy to setup, simple and clear...
i followed the readme and it worked fine, for all kinds of terms and views, easy
just need to get the page titles going somehow and this will be awesome...
thanks-
vincent, in buffalo
http://basicmagic.net
ps- using the latest dev versions of ctools and views
Chaos tool suite 7.x-1.x-dev (2011-Mar-23)
Date 7.x-2.x-dev (2011-Mar-23)
reply
#16
Posted by simg on March 26, 2011 at 2:51pm
Hi Vincent,
Maybe it's true what they say about flattery getting you everywhere ...
Attached is my latest version of taxonomy_views_switcher that fixes the missing title issue and also allows the ability to understand a path like "switch/vid/3" to match the entirety of vocabulary 3.
I've also removed the need for the path to end in % (as it isn't actually necessary).
Apologies to the tvi developers for hi-jacking this post, when I get a few minutes I'll set up a taxonomy_view_switcher experimental project in git.
Enjoy :)
Attachment Size
taxonomy_view_switcher.tar_.gz 8.4 KB
edit
reply
#17
Posted by basicmagic.net on March 26, 2011 at 6:40pm
ok great, thanks much
trying to test the new version-
but can't seem to get it to be recognized on the /modules page to install it
i have done a totally clean, bare metal uninstall of the prior version- twice-
and also checked the db, no signs of it
i compared the .info file from the original version you provided to the new one-
it seems identical
obviously i see there are some diffs in the new .module file...
please scope this out and see what you think might be the issue?
thanks again- really psyched about this approach / module and the recent improvements you made-
looking fwd to seeing in action.
vincent, in buffalo
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy_view_switcher.tar_.gz | 8.4 KB | simg |
Comments
Comment #1
simg commentedHmm, not sure what the problem might be.
The code changes I've made a really minimal and shouldn't make any different to the installation.
Can you re-install the first version ?
If so, do that and just copy the .module file from the latest release over the top of the old one ?
Comment #2
basicmagic.net commentedgreat, trying it now and will report back.
really looking forward to this...
first version was working great, and with the additional fixes you provide this approach is a really easy and powerful way to spin out different views for different vocabs or terms-
using taxonomy as site structure (sections) in these cases but views to power the display of nodes, per section / type.
especially different views.
Comment #3
TripX commentedGreat work, guys!
I'm searching for a soluation for EXACTLY THAT CASE since 2 weeks!
Would be very good if you could release a version.
Comment #4
TripX commentedVersion from FEB-25 is working fine for me.
Except the mentioned issues in the other thread AND the path of some terms are overridden from other nodes...
Comment #5
basicmagic.net commentedok this is working great for me, too
i am using the latest version-
overriding vocabularies and terms with easy "switch" views
clean urls intact without switch as part of visible url = awesome
this is a great module...
thanks!
vincent, in buffalo
http://basicmagic.net
Comment #6
simg commented>> AND the path of some terms are overridden from other nodes...
that'll be a problem with how you have your site set up, nothing to do with taxonomy_views_switcher (famous last words).
taxonomy_views_switcher uses menu_alter to intercept requests to taxonomy/term/% and then chooses the appropriate view as per the rules in the documentation.
if you have a path that doesn't "resolve" to taxonomy/term/% then taxonomy_views_switcher can't do anything about that.
Comment #7
TripX commentedOk simg, thanks for the explanation.
When do you plan to release it as a regular module?
Regards
Comment #8
simg commentedTripX: Don't really have any actual plans for this module. I made it because I needed it for some sites I'm working on. I'm amazed the functionality didn't really exist in this way already. No doubt with the direction my site developments are going it will get further development but no promises - unless you're interested in sponsoring development :)
Not sure what the benefits are to you or me of releasing it as a full module ?
Comment #9
TripX commentedThe main benefit would be that the module is available for all and maybe some other guys are interested in enlarging in the future. For me (and seemly for you) it's a requested module and the community could take advantage out of this too.
Comment #10
simg commentedOK, as soon as I get a few minutes, I'll look into it (some time in the next couple of weeks)
Comment #11
basicmagic.net commentedas far as i am concerned-
this kind of functionality is vital in turbocharging drupal taxonomy-
simply, by allowing for site structure / sections to be defined by different vocabularies and terms-
and then for those to be displayed differently by custom views as needed (via this module)-
you end up with a monster out of the box drupal site.
i very much like the lightweight approach this module takes-
but very powerful way it works.
i have long thought that the "top" drupal modules are/were:
cck
views
ctools
panels
this module is right up there...
and provides the missing link in leveraging the power of drupal taxonomy-
especially as amplified by merlin of chaos' incredible work with views.
vincent in buffalo
http://basicmagic.net
Comment #12
simg commentedright up there with views and cck you say ?
well, thanks for the encouragement Vincent and TripX :)
full project status applied for and also the code is now available in the git repository.
note: that I've change the name of the module and functions in the code from taxonomy_view_switcher to taxonomy_views_switcher to make it consistent, so if and when you install the release version you'll have to disable / delete this version and install the new one. no need to uninstall and any View settings you've made won't need to be changed.
Comment #13
gootemer commentedI found it
Comment #14
simg commentedvincnd - pretty sure it mentions that in the docs? working out which view to show is somewhat intensive so caching the result is a good idea.
Comment #15
TripX commentedsimg, why is it still a sandbox module?
Comment #16
simg commentedTripx, it apparently takes some time to get approval for full project version ...
Comment #17
illogicz commentedThe depth option in the filter no longer seems to work when using this module.
I cant seem to show nodes from subcategories.
Comment #18
simg commentedillogicz: certainly using the depth modifier as part of the url isn't going to work as there is currently no code to do this. I would have though that the depth option within the views argument handler should work ? (ie use the term with depth argument type in views)
Comment #19
TimelessDomain commentedhttps://drupal.org/project/taxonomy_display Taxonomy Display may be a duplicate of this module.
Comment #20
illogicz commentedsimg: I think I'm talking about the same setting you are. (contextual filter: Content: Has taxonomy term ID (with depth))
When not using tvs, it works fine, but with the module enabled, the depth is always 0.
I hard-coded my own setting in for now.
Comment #21
LeoPx commentedThis module is awesome !
Comment #22
sachbearbeiter commentedsubscribe
Comment #23
akyrylenko commentedThank you very much 4 this module !
Comment #24
simg commentedOK, I've taken a few more steps towards getting this module a full release.
If you do upgrade to the latest version, I've removed some "cruft" from the code. There's a small chance you were using that cruft so it's worth backing up your existing code before upgrading.
any problems post them as issues - chances are you'll get a quick response.
Comment #25
dready2011 commentedExcellent module, was the only one that i managed to solve my issues with. A full release would be appreciated!
Comment #26
erald commentedGreat is exactly what I was looking for. Never could get Taxonomy Display to work.
Thank you.
Comment #27
erald commentedIn the readme is states taxonomy/term/2+3+7 probably should work. I tested it and is does not work. It gives a blank screen.
Trying to figure out why it does not work.
One thing I noticed was that the script uses request_url and that returns a url where the + sign is a space.
changing that to (line 65)
returns the correct url but still have to see where it goes wrong, since it is not working.(WSOD)
When the module is disabled taxonomy/term/2+3+5 works as expected.
Comment #28
alex.skrypnykJust want to point out that if you have set contextual filters to validate terms in some particular vocabulary and this is a *different* vocabulary than specified in path settings, you will get the following:
1. WSOD when you try to access the term's page that belongs to vocabulary specified in path. This is because it found the view in path, but the criteria did not validate and it has nothing to output (my guess).
2. Default term view page when you try to access the term's page that belongs to vocabulary specified in contextual filters. This is because there is no view with path containing term's vocabulary has been registered.
Comment #29
simg commentedIf you would like to (ever) see a full release of this module, it might be an idea to weigh in with your opinion on the project application page.
http://drupal.org/node/1117208