Hello,

I have trouble showing a block field (from views)
where the node in which i am placing the block, has a field "file" which i'll be presenting inside this block.

I'm referencing to the same node to get that field using Entity reference.

Only when i reference to the same node i get this problem. in views is fine, and as a block in the sidebar is just fine, but when i use it as ds-block-field or custom code-field i get WhiteScreen.

the error i can see points to this:
Notice: Undefined index: entity in entityreference_field_formatter_view() (row 1144 av /srv/www/htdocs/mysite/sites/all/modules/entityreference/entityreference.module).

when i look at that row i see:
$entity = clone $item['entity'];

Anyone else having this issue?

Comments

swentel’s picture

Status: Active » Closed (works as designed)

Those blocks can't handle arguments sadly enough. Dynamic blocks will probably work fine.

Anonymous’s picture

Ok, thanks Swentel.