Skip to:
Content
Pages
Categories
Search
Top
Bottom

adding pretty URLs as filters to a group directory?


  • jreeve
    Participant

    @jreeve

    I have a feeling I can make custom group directory filters, and get my group directory template to listen to GET requests by using URLs like /groups?filter=my-custom-group-type. But I’d love to make these pretty URLs, so that visiting /groups/my-custom-group-type will return a group directory filtered by my-custom-group-type. Is there a way to do that?

Viewing 1 replies (of 1 total)
  • You could add a page-load listener and look for the action using bp_is_current_action(). To learn more about what action or action_variables are set as you browse your site, I recommend adding r-a-y’s BP Footer Debug plugin: https://gist.github.com/r-a-y/5736878

    Page loads are often caught on the action bp_actions.

    You’d have to do some more work to make sure that your filters can’t collide with group names.

Viewing 1 replies (of 1 total)
  • The topic ‘adding pretty URLs as filters to a group directory?’ is closed to new replies.
Skip to toolbar