Posted by ezra-g on November 30, 2012 at 9:29pm
3 followers
Jump to:
| Project: | Drupal Commons |
| Version: | 7.x-3.x-dev |
| Component: | Events |
| Category: | task |
| Priority: | normal |
| Assigned: | jpontani |
| Status: | closed (fixed) |
Issue Summary
Most of the Commons modules output their Views as pre-configured Content panes. Commons Events has an upcoming events in a group block that could also be a pane.
Comments
#1
Added a pane. Also a few extra fixes in this commit as well.
http://drupalcode.org/project/commons_events.git/commit/4fbde57
#2
Looks like we've got teasers instead of fields.
#3
@jpontani - How can we generate a link to the events search with a prepopulated facet for the current group ID as context passed to the pane? That should be the destination of a "more" link in the view.
I eliminated the block since we managed to get the pane in place before beta. The pane is now placed on the group homepage with fields. Leaving as "needs work" pending the link to the faceted events page.
http://drupalcode.org/project/commons_groups.git/commit/8b03582
http://drupalcode.org/project/commons_events.git/commit/b678a7d
#4
The main issue with trying to create a "more" link would be that the URL depends on what search the site is using. So for Solr, you would have to add a ?f[0]=sm_og_group_ref:node:1 to have the results filtered initially, whereas with Core would just link to a view with a contextual filter in the URL (search/group/1).
Not sure the best way to go about trying to do this yet.
#5
I suggest we start with producing a callback function that returns the appropriate more link, and then figure out the best way to add it to the view (eg, in $view->attachment_after).
#6
Committed a fix.
http://drupalcode.org/project/commons_events.git/commitdiff/34645f6
#7
Automatically closed -- issue fixed for 2 weeks with no activity.