Hello,

I'm trying to create something similar to 'Add content list' but for documents.

The problem I'm getting is that once my view has been created, I can't use the config options offered when adding the views content pane to a panel. Also the config options seem incorrect.

Here are the steps I've taken:

- Create a content pane view based on files of type document. (Format: unformatted list. Style: fields. Some settings allowed)
- Go to a panelized page and try to add my new views content pane to it.

What happened:

- The config modal looks exactly like the one for 'Add content list'.
- Click 'content' under display settings
- The view modes listed are those for content types and not for files
- Clicking the view mode 'teaser' (which is shared by content types and files), doesn't update the preview
- Clicking save doesn't add teaser content to the panel. Instead fields content is added

What I'd like to happen:

- I'd love to be able select different view modes and be able to preview them and output them to a panel.

One I thing I noticed is that the form in the config modal has the id 'views-content-views-panes-content-type-edit-form--4' which seems wrong to me as the view is for files rather than being based on a content type.

Any help very much appreciated, or any ideas for work arounds?

Cheers,

Andrew

Comments

Andrew Edwards’s picture

StatusFileSize
new5.1 KB

Here's a rough patch against 7.x-1.0-rc4 of panopoly magic. It checks to see whether the view is based on nodes or files and makes some adjustments based on that. It works for me, but I can see that really there's a deeper problem: panopoly magic has the expectation that the entity type will be a node. As a result the patch is a bit rough. Also, I can see that there are quite a few changes in the dev version of panopoly magic. This patch is against rc4 as that is what's used for the latest dev version of panopoly core.

Andrew Edwards’s picture

StatusFileSize
new4.26 KB

Updated for 7.x-1.0-rc5

lsolesen’s picture

Version: 7.x-1.x-dev » 7.x-1.0-rc5
Issue summary: View changes
Status: Active » Needs review
whastings’s picture

I've posted #2144021: Panopoly Magic only provides node view modes for view mode selection and a patch that addresses this more generally. It's similar to this patch, but the view mode selection should work for any entity type (users was my case). Perhaps they should be merged together?

lsolesen’s picture

@Andrew Edwards Could you please check whether whastings patch also solves your situation?

lsolesen’s picture

Status: Needs review » Postponed (maintainer needs more info)
Andrew Edwards’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
Related issues: +#2144021: Panopoly Magic only provides node view modes for view mode selection

Marking as a duplicate of #2144021: Panopoly Magic only provides node view modes for view mode selection ... which is more generic.