[buddypress-trac] [BuddyPress Trac] #7873: BP_DEFAULT_COMPONENT or Custom front template as the landing page ?
buddypress-trac
noreply at wordpress.org
Mon May 28 12:46:27 UTC 2018
#7873: BP_DEFAULT_COMPONENT or Custom front template as the landing page ?
--------------------------+------------------------------
Reporter: imath | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Members | Version:
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+------------------------------
Comment (by imath):
7873.patch is bringing peace between the custom front page and the
BP_DEFAULT_COMPONENT :) It's replying "yes" to @sbrajesh 's question :
> If not, should the BP_DEFAULT_COMPONENT be honoured even when front page
is active?
About having a different behavior between {{{bp_is_my_profile()}}} and
viewing another user's profile. I would recommand to avoid bringing too
much complexity about how the landing page is set.
I think it's best to add a new entry into the Template Hierarchy of the
front page in {{{bp_displayed_user_get_front_template}}}, for instance :
{{{
if ( bp_is_my_profile() ) {
$template_names[] = 'members/single/self-front.php'
}
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7873#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list