Skip to:
Content

Opened 2 years ago

Last modified 27 hours ago

#4130 new enhancement

Grab component page title from the WordPress page title.

Reported by: sooskriszta Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 1.5.4
Component: All Components Keywords: needs-patch
Cc: karmatosed@…, vivek@…

Description

BP provides the functionality to change names and slugs of components via the config file.

It would be nice if like bbPress, these options are provided in the WP admin panel.

e.g.

define ( 'BP_ACTIVITY_SLUG', 'streams' );
define ( 'BP_BLOGS_SLUG', 'journals' );
define ( 'BP_MEMBERS_SLUG', 'users' );
define ( 'BP_FRIENDS_SLUG', 'peeps' );
define ( 'BP_GROUPS_SLUG', 'gatherings' );
define ( 'BP_FORUMS_SLUG', 'discussions' );
define ( 'BP_MESSAGES_SLUG', 'notes' );
define ( 'BP_WIRE_SLUG', 'pinboard' );
define ( 'BP_XPROFILE_SLUG', 'info' );
define ( 'BP_REGISTER_SLUG', 'signup' );
define ( 'BP_ACTIVATION_SLUG', 'enable' );
define ( 'BP_SEARCH_SLUG', 'find' );
define ( 'BP_HOME_BLOG_SLUG', 'news' );

Change History (11)

comment:1 sooskriszta2 years ago

  • Component changed from Core to Administration

comment:2 sooskriszta2 years ago

  • Component changed from Administration to UX/UI

comment:3 DJPaul2 years ago

  • Milestone changed from Awaiting Review to Future Release

comment:4 sooskriszta2 years ago

  • Summary changed from Change component names and slugs to Add admin panel options to change component names and slugs

comment:5 sooskriszta2 years ago

  • Version changed from 1.5.4 to 1.5.5

comment:6 sooskriszta17 months ago

  • Version changed from 1.5.5 to 1.5.4

Any danger of this being sneaked into 1.6.1 or 1.7?

comment:7 DJPaul17 months ago

No, not for 1.7.

comment:8 sooskriszta17 months ago

  • Keywords needs-ui added

comment:9 karmatosed14 months ago

  • Cc karmatosed@… added

comment:11 sooskriszta27 hours ago

  • Cc vivek@… added
  • Component changed from UX/UI to All Components
  • Keywords needs-patch added; needs-ui removed
  • Summary changed from Add admin panel options to change component names and slugs to Grab component page title from the WordPress page title.

Slug constants are deprecated: http://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/
which is mostly fine as BuddyPress asks you which page to use for each component (e.g. Groups, Members etc) and even creates the pages for you. if you want to change the slug, no sweat...just edit the page normally in WordPress and change the slug as you would for any normal page or post. Fantastic!

However, the problem is that in the frontend, instead of using the page titles as set in WordPress, BuddyPress continues to use hardcoded component names as the page titles. e.g. If you tell BuddyPress to use the page Schools (with slug schools) as the Groups list/page, then BuddyPress faithfully uses the correct page, and the slug is schools. But when you visit the page in frontend, the title shown is Groups, not Schools. This can't possibly be correct. BuddyPress should grab the page titles from WordPress too.

Note: See TracTickets for help on using tickets.