this module is really pretty useful. however, unless it can auto-hide the same cck field that's being displayed in a block from being also displayed in the content normally, it doesn't serve much purpose. :( is there currently a way to do this? if not, it would be nice to add this functionality. no one wants to have duplicate cck fields all over the page. thanks!

CommentFileSizeAuthor
#2 202752-2.patch1.24 KBtraxer
#1 202752-1.patch1.14 KBtraxer

Comments

traxer’s picture

Status: Active » Needs work
StatusFileSize
new1.14 KB

Attached patch (against HEAD) implements hook_nodeapi($op = 'view') so that appropriate fields from the $node->content array are removed. Some problems remain:

  1. Might there be side effects to this (brute-force-like) method? I did not notice any.
  2. What happens, if more than one theme is used? The attached patch does not check which theme the current user has configured.
  3. Block visibility by role is not taken into account.
  4. Block visibility by node is not taken into account.
traxer’s picture

Status: Needs work » Needs review
StatusFileSize
new1.24 KB

Updated patch resolves items 2, 3 and 4.

fluitfries’s picture

Thanks! This works great. Makes a lot more sense to use a module like this now. I've tested and it works fine on my site.

fokkezb’s picture

Status: Needs review » Fixed

Thx people!

Will be added in new release today.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Anonymous’s picture

To avoid mistakes: this behaviour has changed. Please read the documentation if you want to know how to exclude a field in a cck block from the main content area.