First of all thanks for the module! It has been very useful to me.

The bug I'm reporting is related to the second last item in "How to Use" in README.TXT:

--- How to use ---

- Give the required permissions to the roles
- admin/structure/block/add-node-fields-block to create a new block
- select the node types you want to use
- select the fields you want to show in the block
- Go to the block administration page and move the block into a region
- Optional go to node display settings and change the settings for node
  fields block.
- Hide the fields in the default display and show them in the               <------ this one
  node fields block display.
- Optional theme your blocks by overwriting the theme functions.

I have followed the above points so that the "Slogan" field in the "BlogsPage" content type can be shown as a block. However it's also shown as a normal node field, which I want to hide.
So in the "Content Types->BlogsPage->ManageDisplay" page, I move the Field "slogan" to the Hidden category. This made both the block and the normal node field disappear in the rendered page. I suppose the expected behavior is only to hide the node field?

Drupal version: 7.31
Module version: 7.x-1.1

Thank you.

Comments

jerryfromearth’s picture

A temporary CSS workaround:

		article .field-name-field-slogan {
			display:none; // A hack to hide the node field until https://www.drupal.org/node/2355065 is fixed.
		}
barthje’s picture

Status: Active » Needs review

Hello Jerry,

I'm glad the module is useful for you!

But I think you are changing the wrong display mode. You should hide the field in de default display mode, but show it in the node fields block display node. Maybe I should rewrite the readme to make that a bit more clear.

e.g.
- hide the field in "admin/structure/types/manage/page/display" where page is your content type
- show the field in "admin/structure/types/manage/page/display/node_fields_block" where page is your content type

If you don't have the node fields block display:
- Go to the default display settings "admin/structure/types/manage/page/display" where page is your content type
- Open up the custom display settings fieldset at the bottom
- Enable/check "node fields block"
- Go to the node fields display settings to show the field only for this display mode "admin/structure/types/manage/page/display/node_fields_block" where page is your content type

I hope this will help you!

Len Berman’s picture

I had the same problem & this helped a lot. Definitely add those few lines to https://www.drupal.org/project/node_fields_block

nijk’s picture

Agreed, the need to enable the Node fields block view mode could be a lot clearer in the module docs. I'm very pleased to see that this module leverages them though :)

Nitebreed’s picture

Status: Needs review » Closed (works as designed)