This functionality was working for me with panels 3.4 and ctools 1.4 but after upgrading to 3.5/1.6 content panes no longer come through as an option.

Comments

mehoo462’s picture

I'm having the same issue.

In the pane settings I see the Category Option, which I have set to "View Panes." The help text reads: "This is category the pane will appear in on the add content dialog." But I don't see that content on the add content dialog. I've flushed my caches to see if that heps, but no luck.

Luckily using the Block display seems to get me the results I need. What is the "Content Pane" display type for anyway?

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

Strange. I haven't had a problem with content panes showing up in my test system.

One note: If you've set one of the arguments to require a context, and that context is not available in your display, then the item won't show up there. Could that be the problem?

mehoo462’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

This seems to have resolved itself with some cache flushes.

merlinofchaos’s picture

Because of the way available content is restricted, the actual available content is cached during the editing process. IF you have a panel that is currently being edited, and then add a content pane, that content pane will not appear until the edits are saved or canceled.

andrew_k’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)
StatusFileSize
new66.93 KB

Sorry im not sure if we are talking about the same issue here. When I click on the views tab in the add pane dialog then select a view, the display dropdown is not populated with the necessary displays. It is only showing the default option. I have attached a screenshot as an example.

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Fixed

Content panes are not listed as available displays when using the generic 'view' add. They show up as their own content types. The reason for this is that content panes have a large list of view specific options that are ignored if you use the generic view to display them, which makes people think that there are bugs.

Instead, go to the category selected in the content pane settings (defaults to View panes) and look for your view there. It will be named whatever was configured in the settings in the view display, and defaults to the view name if that setting was not updated.

andrew_k’s picture

Thanks, I had been having problems with adding views panes to panels which is why I had been using the standard views option. After looking further into the pane settings options though it is making alot more sense. Allowing settings to be passed through to the pane was the key feature I had missed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

liquidcms’s picture

Title: Content pane displays do not come through as an option when adding a view to a pane » Content pane displays do not come through as an option when adding a View Panes to a pane
Version: 6.x-3.5 » 6.x-3.7
Status: Closed (fixed) » Active

reopened, changed title and rev to bring up to date.

I think i understand how this is supposed and i think this is still a bug.

I have a View which has 3 displays added as type Content Pane: http://screencast.com/t/M2QwNGM2Z

when i go to add content to my pane i select View Panes but only see the default view listed as an option: http://screencast.com/t/NmM2ODU0MWY

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

Your screenshots hold only the configuration of the 'defaults' which do not include the category information on the content pane, so there is not enough info.

My immediate guess, though, is one of two things:

1) There views are configured to be in a different category
2) You haven't saved the panel since you added the displays to the view. Available content is cached while a pane is being edited.

merlinofchaos’s picture

but only see the default view listed as an option:

Whatever you think you see, if it's under 'View panes' it is definitely not the default view and is one of the content pane displays there. Default views do not show up individually in the content.

liquidcms’s picture

well View was definitely saved numerous times and all caches flushed a few times as well.. plus in other places (like adding a view into Quicktabs) i do see the different displays.

but category could be the issue.. especially since i have no idea what that is... lol

liquidcms’s picture

ahhh, ok.. got it.. http://screencast.com/t/YjI3ODBhMzIt

the Category is set to View panes, cache has been flushed numerous times, view has been saved... yet under View panes... only the name of the View shows up and none of the displays that have been created with display type Content Pane..

i can get this to work with display type Blocks just thought Content Pane was the way to go; but i think in the past i have thought to use content pane type and never had any success with it then either.

liquidcms’s picture

just on a whim i thought i would try to change the Category to something other than View pane os i changed them all to Test... and sure enough i now get Test showing up as a category of content i can add to my mini-panel: http://screencast.com/t/N2ZlMTA0

but alas, still only the name of the view listed there and none of my added displays

merlinofchaos’s picture

Please give me screnshot of the configs of the other two panes.

The pane you show is configured to use the view name and description and show up in View Panes. Indeed, an item with the view name and description shows up under View Panes. How are the other two displays configured?

liquidcms’s picture

pretty sure they are setup the same:

http://screencast.com/t/MDljOTAzZj
http://screencast.com/t/NmNlMTU3M

please let me know if i can give you anything else such as access to live site or a view export - i'll update live server and send link/access in email in case thats of any use

merlinofchaos’s picture

Well, to start with, those are set for the category 'Test' not the category 'Views panes' so they clearly would not show up in the category you're looking at.

In your screenshot you do not have a category 'Test'. Again, please make sure you the Panel is not in a locked state after you save your View, as per the second item in #10.

liquidcms’s picture

as i has said in #14 and as a test i changed the category of all 3 displays to Test.. and they should then show up their when adding content into my panel.. i can put them back to View pane; as it was.. but makes no difference.

Panel and Views are not locked and cache has been cleared. I will try going through the whole thing again but i think at this point best to use Blocks rather than Content Pane as i am sure there is an issue here but not clear as to what the factor is that is causing Content Pane to not work as a display. Will keep an eye on this as new revs come out for both Views and Panels.

thanks for your help,

merlinofchaos’s picture

Panel and Views are not locked and cache has been cleared. I will try going through the whole thing again but i think at this point best to use Blocks

I disagree. I assure you, I use this feature all the time. My belief is that the content pane is the only way to use Views together with Panels, and if you're having a problem I want to resolve it.

I just took another look at your screenshots and I see something I missed. I notice you have an argument defined.

For each of your content pane displays, click on Argument input: Edit -- how are the arguments configured to get their input?

If the setting is 'from context' it could be that there is no context available to give to the pane, which would cause it not to show up as content.

Also, change the Admin Title on each of the displays to something *other* than the view name. That way you'll be able to tell which of the 3 displays is showing up. You keep saying that none of your added displays are showing up there, but this isn't actually true (as I've tried to say) because the default display never shows up in the Add Content dialog by itself, ever.

liquidcms’s picture

ok, it works.. :)

this is what i did:

- changed Category off all of them back to View pane (i am sure this makes no difference)
- changed Admin title to the name of the display (i am sure this was the issue - they cant ALL use View name)
- arg was set to "no arg"; i changed this on a couple of them... but then set back and didn't matter (i.e. it worked regardless)

whoo hoo.. maybe wouldn't hurt to have validation saying they can't all have same name? or maybe default to the Display name.. but that could be Content pane for all of them by default.

merlinofchaos’s picture

I'll doublecheck that. It's possible that the default should not be just the view name or something as well.

Though. Now that you mention it, I think I *do* key on the category + name combination, so that could be a bug that's causing them all to collapse. And that's a bad thing. Hmmmmm.

liquidcms’s picture

defaulting to display name doesn't seem like too bad an idea.. much more likely to be unique than the view name (which will always be the same). or possibly no default and required to be filled in.

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Active

Whoops this shouldn't be nmi anymore; I now understand what is wrong and how to fix it.

merlinofchaos’s picture

Status: Active » Fixed

A simple typo was causing non-unique content (of any type) to disappear. Fixed that bug.

It may be a separate issue that the default naming of view content panes could probably be improved. I'm not quite sure of what the best thing to do is, though.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 3682642 on 7.x-3.x, master, pipelines, 7.x-3.x-i18n, 8.x-3.x by merlinofchaos:
    #827628: "Add content" dialog could lose content with the same title as...