Well, I have been spending way too long figuring this one out. I am not sure where the problem lies, it may be a Media problem, but I think I ought to try here first.
How to reproduce:
- Install modules
Fieldable panels pane (dev) + dependencies
Media (dev) + dependencies - Now, add a media field to a fieldable panels pane.
- Create a panel page/mini panel or have a panelizer node (with IPE).
- Add a FPP with media, click Finish
- Verify that this works as expected
- Edit the Pane u just created and Finish
- Now the preview does not work.
Note that it does not matter if you change anything. when you edit the existing Pane.
It is seriously driving me nuts. I recalled that Panopoly is using a similar methodology, so I checked there and found out they do not use Media for images. I added a Media field, and it worked! However, when i deleted the normal image field, preview didn't work again. I tested that on my clean install, added a regular image field, and lo and behold, now the preview works. If anyone can solve this, I am going to send you one of the best Belgian beers in the world.
Comment | File | Size | Author |
---|---|---|---|
#2 | FPE-media-problem-fieldable_panels_panes-2101255-2.diff | 1.76 KB | MiroslavBanov |
Comments
Comment #1
dagomar CreditAttribution: dagomar commentedAfter a good night's sleep I was able to solve this excruciatingly annoying problem, or, I came up with a working workaround. It turns out that the problem is when you set the media field to display anything other than 'Rendered entity'. In my case, I had an image field and a video (file) field displaying as image and as generic file respectively. Once I changed those to Rendered entity, my problem was solved. Still it's an annoying problem, but at least I have it working now. I'll close this issue since the workaround is acceptable for me now. I hope this may help someone in the future.
Comment #2
MiroslavBanov CreditAttribution: MiroslavBanov commentedI have experienced the same issue.
This patch to a completely unrelated issue appears to fix the problem, but it prevents the use of uuid:
https://drupal.org/comment/7381446#comment-7381446
I attached a patch for this issue that still uses uuid, but it is not compatible with the other patch I link to.
Comment #3
DamienMcKennaNot sure there's a bug here? The changes in the patch from #2 have been committed elsewhere.
Comment #4
MiroslavBanov CreditAttribution: MiroslavBanov commentedAre sure this was committed? I don't see it anywhere. There is an alternative patch in #1986334: Allow a particular revision of a fieldable panels pane to be placed in a panelized page, but it is different, and doesn't support load by vuuid.
Comment #7
ruloweb CreditAttribution: ruloweb commentedI think we can set this as duplicated #1986334: Allow a particular revision of a fieldable panels pane to be placed in a panelized page so we can merge efforts.