Closed (fixed)
Project:
Drupal Commons
Component:
Events
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
30 Nov 2012 at 21:29 UTC
Updated:
25 Jan 2013 at 17:10 UTC
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
Comment #1
jpontani commentedAdded a pane. Also a few extra fixes in this commit as well.
http://drupalcode.org/project/commons_events.git/commit/4fbde57
Comment #2
ezra-g commentedLooks like we've got teasers instead of fields.
Comment #3
ezra-g commented@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
Comment #4
jpontani commentedThe 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.
Comment #5
ezra-g commentedI 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).
Comment #6
jpontani commentedCommitted a fix.
http://drupalcode.org/project/commons_events.git/commitdiff/34645f6