#7871 closed enhancement (fixed)
defined BP_DEFAULT_COMPONENT is not honoured when BP Nouveau is active
Reported by: | sbrajesh | Owned by: | imath |
---|---|---|---|
Milestone: | 3.1.0 | Priority: | normal |
Severity: | normal | Version: | 3.0.0 |
Component: | Templates | Keywords: | has-patch commit |
Cc: | sbrajesh |
Description
When BP Nouveau is active, if we define the BP_DEFAULT_COMPONENT, It is not honoured.
I put following line into the bp-custom.php
define( 'BP_DEFAULT_COMPONENT', 'profile' );
But it did not work. If I enable the legacy template pack, It works as expected.
Attachments (1)
Change History (10)
#2
@
6 years ago
- Keywords commit added; 2nd-opinion removed
So for clarity:
The constant does work as expected.
The issue being that once the custom home page deactivated and constant defined we don't perceive the nav item as the first in the order of links, and that in the Customizer the ability to re-order isn't possible.
Tested patch and it does allow for the profile item to be re-ordered to the top position(first in list).
@imath Lets commit then.
#3
@
6 years ago
- Keywords reporter-feedback removed
- Milestone changed from Awaiting Review to 3.1.0
- Owner set to imath
- Status changed from new to assigned
- Type changed from defect (bug) to enhancement
Thanks a lot for your feedback @hnla 👍 Let's have this in!
#4
@
6 years ago
Hi @imath
In this case, It should be considered a bug in BuddyPress Core.
The constant has been there well before the custom front page was introduced. A correct solution will be to honour the constant whether the front page is active or not. Otherwise, the constant is meaningless.
Please feel free to edit the title of this bug report and move it away from BP Nouveau.
#7
@
6 years ago
@sbrajesh This is the point of view of a Plugin developer :)
I can imagine site owners' point of view! If they do add this front page, then they certainly want it to be the landing page.
But I'll open a new ticket about it so we can discuss more about it ;)
Hi @sbrajesh
Thank you for your feedback. Actually BP Nouveau is honouring this constant the same way BP Legacy does. You think the opposite because by default Nouveau is using the custom front page feature. If you deactivate this setting from the customizer (see the screencapture below), you should see the Profile nav is the default component.
Alternatively, if you add a
front.php
template inbp-legacy/buddypress/members/single/
(or in a theme'sbuddypress/members/single/
folder) you'll see that BP Legacy is not using the constant to set the landing page.So I have a suggestion : edit this ticket as an enhancement so that we remove the restriction about the first nav item of the primary nav into the reordoring panel of the customizer, this way we could land on profile and have it at the first position if the custom front is disabled (see the screencapture below). I don't see any trouble about doing this ;) What do you think @hnla ?
7871.patch is removing this restriction.