I have a content type with a field collection.
This field collection is a multivalue that has many fields.

To render them properly on the node for the public to see, I created a view... in a view.
Bear with me.

The view renders properly when the node is published like this :

http://z.alphex.io/2017-02-16_08-55-05--k8vvw.jpg

The node create/edit screen looks like this :

http://z.alphex.io/2017-02-16_08-56-28--w97il.jpg

You can see that its a gnarly data set.

I'm using 2 views.

In my template, I render a view that passes the NID in

print views_embed_view('oh_experiance_display', 'default', $node->nid);

this view has a "views field collection" formatter as such :

http://z.alphex.io/2017-02-16_08-59-13--0w4wj.jpg

From this module "field_collection_views" https://www.drupal.org/project/field_collection_views

And, for published nodes, it works perfectly.

But on an unpublished node, the view won't render.

I have both views set for NO access control, and I've set the Query Settings to "Disable SQL rewriting" as well, hoping that did the job.

This might be an issue with field_collection_views, and I'll cross post there, but I was hoping someone had some help with this.

The use case(s) ...

1. The content managers need to preview the content before saving, and see it in an unpublished view.

2. They have a generic "read only" user account for _extremely non technical_ people to review the content before it goes live. Where they would look at it in this unpublished state as well.

The goal, of this ticket, is, to have the view render even if the node is unpublished, and my theory is, that the view sees the node (and its fields) as unpublished, and chokes somewhere in the chain...

Thanks!

Comments

alphex created an issue.

fakir22’s picture

I have the exact same problem, no solution yet...

edit: it seems to work for me on single field but not on multivalued fields (like a select or checkbox) or maybe it's because of EntityRef