Linking to content when using custom routing solutions

Events happening in the community are now at Drupal community events on www.drupal.org.
jmev's picture

I'm working with a system where custom routing had to be implemented using hook_url_inbound_alter. The layout is basically, "mastergroup" as the main group, and "projects" as the child group (set as a group and group content, with the group audience set to "mastergroup". So, the urls have to be as follows:
- mastergroup/group-url-alias (the main group content)
- mastergroup/group-url-alias/projects (list of projects for the current group)
- mastergroup/group-url-alias/projects/project-url-alias (project details page)

This routing must be in place to serve as a visible breadcrumb, and for extracting the current group and/or project for associating subsequent content being added.

Then, in the "mastergroup/group-url-alias/projects" pages, I want to use a panel that displays the list of project for that group, to be used as a custom menu system, with each item linking not to the original project's view mode, but to the panel that has this custom routing. However, I don't see any way to add tokens that will display the parent group's alias. Is there a way to get that?

Alternatively, if there's a simpler way to do the overall routing using the built in OG routing/menu system, I would appreciate the correction to this misdirected approach.

Thanks!

Comments

OG Purl

scottrigby's picture

@jmev You may want to try OG Purl.

Not sure (yet) how it will help

jmev's picture

Thanks for the suggestion. I'll take a look at it, although I'm not sure how it will help from my initial reading.

I'm hoping to find a write-up about handling this situation, hopefully in a manner that is much cleaner than what I have now. It seems like it would make sense to just drop in a block of "child" content for the current parent group, listed as links to those child content records. Also, it seems like there should be a simple way to drop in of the form to add the child content. I know this is done via the partial form in Drupal Commons, but I wonder what's possible outside of that.

Thanks again for suggestions.

Drupal rocks and I roll — together we play the classics

Organic groups

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week