An extension of #1535668: update various exportables to support dynamic details related to feature nodes (eg. clubs, teams, etc.)

For example, I might change 'Academics' to 'Curriculum' and the menu item pointing to the departments group listing view to 'Subjects'.

Since that would be the active menu item, it might be useful to alter the group listing page title in this example to 'Subjects' rather than 'Academics' as currently.

I don't know what could be done about the page path because I expect that's more fiddly to dynamically alter because it has to be unique... apart from perhaps making it more generic, i.e. '/group-listing/[julio_departments_nid]/all

@penguininja - having this in the path could also help with getting the group context to display contextual blocks on these views pages, as mentioned in http://drupal.org/node/1515116#comment-5834444 ?

Comments

lightsurge’s picture

As for overriding a View page title I can only think of doing it in the theme layer with something like:

$menu_item = menu_get_item($_GET['q']);
  if ($menu_item['page_callback'] == 'views_page' && $menu_item['page_arguments'][0] == 'julio_clubs') {
    $title = menu_get_active_title();
    if ($title != 'Clubs') {
      drupal_set_title($title);
    }
  }
jgraham’s picture

Assigned: Unassigned » jgraham
Status: Active » Closed (duplicate)

Closing this out as a duplicate of #1535668: update various exportables to support dynamic details related to feature nodes (eg. clubs, teams, etc.) we have several details related to these top-level group pages, I would rather find a comprehensive solution to these issues rather than a set of workarounds.