in the last last 2 or 3 dev versions I don't see the option
Exposed form
Exposed form in block
for all display types, its only available for display of type "page"
| Comment | File | Size | Author |
|---|---|---|---|
| #25 | Untitled-3.png | 103.98 KB | majdi |
| #22 | views-pane-exposed-filter-form_1144378-22.patch | 2.91 KB | aaronbauman |
| #12 | views_exposedform_panelpath2.patch | 908 bytes | robbertnl |
| #11 | views_exposedform_panelpath.patch | 578 bytes | robbertnl |
| #2 | viewsshot.png | 86.6 KB | majdi |
Comments
Comment #1
dawehnerJust a quote from the code.
Comment #2
majdi commentedYou mean Use AJAX: Yes ?
well, yes its set and still have only this
Exposed form
Exposed form style: Basic
look at attached image
Comment #3
mandreato commentedSame issue here: in the "Exposed form" area, the "Exposed form in block" is visible only for page displays.
In other kind of display (i.e. default or Content pane) there is just the "Exposed form style" --> no way to activate/deactivate the block exposition.
This is not related to AJAX setting.
I got this issue after updating from an older 6.x-3.x-dev to a more recent 6.x-3.x-dev, and realized that the exposed block of a view disappeared from pages...
Comment #4
merlinofchaos commentedYes, it's because that setting was actually invalid. Block and default displays have no path; exposed form in a block needs a path.
Comment #5
mandreato commentedSo, it will be no more possible to expose in a block the filters of a content pane view which uses the panel path ?
Comment #6
mandreato commentedComment #7
mandreato commentedShould not has_path() be set to TRUE for view content panes which use the panel path ?
Comment #8
mandreato commentedComment #9
robbertnl commented@#4 This 'bug' offered a great functionality in combination with Panels. I was using the exposed filters in a different panels column.
@#7 Sounds like a good solution to me
Comment #10
jitse commentedAhem, using the same here. Am using the views 3 dev. The views-exposed filters in combination with panels is an attractive feature/bug.
It is working though, so not upgrading yet.
Comment #11
robbertnl commentedI made a patch with the suggestion from #7
Merlin i hope you can live with this patch :)
Comment #12
robbertnl commentedChanged the patch, changing the has_path() method caused another error (path not set). So this might be better
Comment #13
mandreato commentedIt worked for me.
Comment #14
dawehnerCan't the panels display override the has_path method?
Powered by Dreditor.
Comment #15
robbertnl commentedIf the has_path method is overridden then the validate function needs to be overridden as well (and get_path?).
See line 2319
Comment #16
mandreato commented@dereine: do you intend that Panels module has to be patched to restore the correct behaviour ?
Comment #17
dawehner@robbertnl
The great advantage of OOP here is that you can inherit /override behaviour. So there is no reason to hardcode something special specific in it.
Comment #18
robbertnl commentedI agree patching panels is the most logical place.
I was too fast with my patch, i might make a new one for panels if i have some spare time
Comment #19
mandreato commented@robbertnl: yes please, provide a patch to panels so that it can be commited.
Comment #20
mandreato commentedI temporary resolved by adding the following code:
in the following file:
...\sites\all\modules\ctools\views_content\plugins\views\views_content_plugin_display_panel_pane.inc
So it seems more related to CTools than Panels...
Comment #21
alexkessler commented+1 for exposed forms in block and default views.
I used this "bug" with panels all the time...
Comment #22
aaronbauman#20 doesn't fully solve this issue.
I still needed a way to *override* the panel and views path, instead of only inherit/not-inherit.
Since the view (and therefore the view pane) doesn't have a path at all, i need to be able to explicitly set the exposed filter path.
This patch not only implements
uses_exposed_form_in_block()as in #20, but also changes views_content.module'sinherit_pathsetting topath_override, similar to the way it's implemented in views_panes.inc content type.Comment #23
aaronbaumanSorry, this should is against Ctools 6.x
Comment #24
mandreato commentedPatch #22 works for me.
Comment #25
majdi commentedI test the patch 22 its work except one point
If i make content pane and make make ajax yes , and expose in block yes, Then add the block and view result to the same panel, the page keep reload when you hit apply and url is showing as get
Comment #26
aaronbaumanMajdi - this is tangential to the issue addressed by the patch.
As far as I know, an exposed filter block does not support ajax.
So, there's no reason to expect that combining an unsupported feature with panels will somehow add ajax support.
Your issue should be reported separately, and possibly against Views, not Ctools.
Comment #27
ashrafabedFor the patch in #22, at this part :
It should say:
And, I'm not sure if this is because of another patch a coworker of mine implemented, but this part of the patch was redundant for me (that function already existed further down in the code):
But thanks for the patch, it worked for me and is very useful for using an exposed form for a 'search' page, and using a view pane on another panel page as a results page.
Comment #29
mgiffordShould this be bumped to D7? Think that's where most of the development is happening for CTools now (if not D8).
Comment #30
japerryDrupal 6 is no longer supported, closing.