Here is a patch against 7.x-1.0 that extends CCK Blocks to work with taxonomy and user fields, and creates a CCK Blocks display mode for both, just as already exists for node objects.
Some things need to be looked at - I havent tested it with terms in fieldgroups, and token integration may not be the best (I set it up so node tokens work on nodes, and term tokens work on term pages, but I left user page tokens out for the moment in case there is some conflict with the 'current user' tokens.
However, I guess it's a start :)
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | cck_blocks-taxonomy_and_user_field_support-1067708-6.patch | 8.75 KB | damien_vancouver |
| cck_blocks_taxonomyuser.patch | 7.95 KB | nirbhasa |
Comments
Comment #1
doublejosh commentedLove it.
Wish there was a Drupal 6 version of CCK block to easily place terms of a specific vocab into a block on a node page.
Comment #2
dubs commentedIt would be great to see this applied. This is really useful functionality. Can this be applied to the latest DEV?
Comment #3
damien_vancouver commentedHi guys,
I had a look through this patch (which predates my arrival to cck_blocks as a maintainer)... I don't see any reason why we wouldn't add this to -dev. It's great extra functionality and it looks like it would be totally backwards compatible.
However, I won't have much time to test it exhaustively.. if I get it into -dev, could someone on the thread here give the new functionality a good test for me? I"ll make sure that existing functionality still works as it did... then we can maybe leave it in -dev for a bit and if there are no issues come up push it to a proper suggested release.
There's a couple other enhancements for cck_blocks to play nicer with other modules that we could get into the release too, like #1509566: Improve compatibility with other modules (Nodesymlinks and Workbench Moderation, and others) and maybe also #1720502: Field content in CCK subgroups not shown in blocks that would be nice to get into a new stable version.
So, I will try and get this patch re-rolled against 7.x-dev later today (unless someone beats me to it) and applied for testing.
Comment #4
damien_vancouver commentedSetting to correct version and issue status.
Comment #5
dubs commentedI will help to test - we use this module extensively. As soon as it's ready I'll download and feedback.
Comment #6
damien_vancouver commentedOK, I cleaned up the original patch - a working one is attached.
I've also committed the patch to 7.x-1.x-dev in commit 30e347e : Taxonomy and User field support
It's ready for some testing now.
I did make some other changes:
Please give the user/terms some real world testing with 7.x-1.x-dev and let me know how it goes. I will be implementing some other fixes over this week, in hopes of making a new 1.x point release by the end of the month.
Comment #7
damien_vancouver commentedI'm tidying up open issue statuses, so I set this to its correct value of "fixed" since it's been committed.
I'll close this issue as well once the 7.x-1.2 release comes out. Any testing in the meantime (using 7.x-1.x-dev) would be appreciated!
Comment #9
petednz commentedthanks for the work on this
Just reporting back on testing - basically it all seems to work though I had problems getting 'CCK Block' button to show under Manage Dsiplay for a while.
Downloaded dev and enabled - saw no DB updates to run
CCK Blocks checkbox now appears already ticked under
Use custom display settings for the following view modes
but does not show as a button under Manage Display
Unchecked and checked again
(didn't try clearing caches - maybe that would have resolved it sooner)
No change but get the message The CCK Blocks mode now uses custom display settings. You might want to configure them. at
/admin/structure/taxonomy/blog_title/display/cck_blocks
but got access denied there (as admin!)
checked Taxonomy Term Page to confirm I see that as a button. I do.
Rechecked CCK Block and finally my button showed.
Not sure that problem is replicable though ;-(
Might be worth seeing if anyone else can confirm the hiccup I hit.