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

jpontani’s picture

Assigned: Unassigned » jpontani
Status: Active » Needs review

Added a pane. Also a few extra fixes in this commit as well.

http://drupalcode.org/project/commons_events.git/commit/4fbde57

ezra-g’s picture

Priority: Minor » Normal
Status: Needs review » Needs work

Looks like we've got teasers instead of fields.

ezra-g’s picture

Title: Add "Upcoming events in this group" pane in addition to the Block » Add "Upcoming events in this group" pane should link to appropriate Events faceted search page with group selected as a facet

@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

jpontani’s picture

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.

ezra-g’s picture

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).

jpontani’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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