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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | file-view-modes-1986056-2.patch | 4.26 KB | Andrew Edwards |
| #1 | file-view-modes-1986056-1.patch | 5.1 KB | Andrew Edwards |
Comments
Comment #1
Andrew Edwards commentedHere'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.
Comment #2
Andrew Edwards commentedUpdated for 7.x-1.0-rc5
Comment #3
lsolesen commentedComment #4
whastings commentedI'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?
Comment #5
lsolesen commented@Andrew Edwards Could you please check whether whastings patch also solves your situation?
Comment #6
lsolesen commentedComment #7
Andrew Edwards commentedMarking as a duplicate of #2144021: Panopoly Magic only provides node view modes for view mode selection ... which is more generic.