Skip to:

Opened 5 years ago

Closed 5 years ago

#6840 closed enhancement (fixed)

Member Types: introduce member type directory permalink

Reported by: Offereins Owned by: boonebgorges
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: Members Keywords: has-patch


BP should provide (a) permalink function(s) for member type directories. The urls may consist of different variable parts, so to abstract this in core would make using them more easy.

Patch is attached.

Attachments (1)

member-type-directory-permalink.diff (1.7 KB) - added by Offereins 5 years ago.

Download all attachments as: .zip

Change History (4)

#1 @boonebgorges
5 years ago

In 10458:

Introduce bp_get_members_member_type_base().

BP 2.3 introduced member-type-specific directories. These directory URLs are
built using a member-type prefix, as 'type' in
The current changeset moves the filtered value into its own function so that
it can be referenced elsewhere with minimal duplication.

See #6840.

#2 @boonebgorges
5 years ago

  • Milestone changed from Awaiting Review to 2.5
  • Owner set to boonebgorges
  • Status changed from new to assigned

Thanks, @Offereins! I'm going to rework to make it a bit more readable, and add some unit tests.

#3 @boonebgorges
5 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 10459:

Introduce bp_get_member_type_directory_permalink().

The new template tag is an easy way to get the URL of a member-type directory.

Props Offereins.
Fixes #6840.

Note: See TracTickets for help on using tickets.