buddypress / next-template-packs

is this the next BuddyPress template pack?
35 stars 9 forks source link

Default front.php for Groups & Members #19

Closed imath closed 6 years ago

imath commented 8 years ago

I think it could be interesting to add a front.php template and a dynamic sidebar and custom widgets to provide a more advanced home page for single items.

hnla commented 8 years ago

Absolutely agree. Part of the reason I wanted user account front.php matching to groups was to have the ease of providing a much better user account landing page experience.

The main index page on user accounts should be far more general, a mix of things, little bit of activity loop, a few latest messages, latest notifications; ata a glance what you need to know bout and deal with.

Lets make this a task to accomplish for this template pack, we could tackle or it could make a great task for someone to take on?

imath commented 8 years ago

I really think we should register specific dynamic sidebars and provide user/group widgets. By the way i think the Groups Component API has a widget() method :)

hnla commented 8 years ago

dynamic_sidebar as in? For the user/group single screens ? I'm in agreement, can we give a broad rough example of usage then we can break out to a sep task or just run homepage for group/user plus sidebars as a task.

imath commented 8 years ago

I've been thinking about it. And i think we can create two dynamic sidebars one for the group front, the other for the user front.

Then we could create a specific template tag function that would wrap the dynamic_sidebar between a add_filter()/remove_filter block that would make sure all widgets added inside would display the content for the current displayed item id.

I also think we should programmatically add some default widgets inside these dynamic sidebars so that there are not empty.

imath commented 8 years ago

here are some screenshots about the above commit:

capture d ecran 2016-06-21 a 18 14 09 The new BuddyPress Template Pack panel

capture d ecran 2016-06-21 a 18 13 51

The sections

And finally, when you're on a single item page, you can enable/disable & preview the front page setting:

capture d ecran 2016-06-21 a 18 11 59

imath commented 8 years ago

some ideas i drop here.

groups/single/default-front.php:

members/single/default-front.php:

About the widgets layout, we will be adding 1 dynamic_sidebar for group and another one for member, but how widgets will be displayed ? Is there a way to include a customizer setting into our sections to choose between layouts like : footer-layout

It it only doable by the way! :)

imath commented 8 years ago

this commit 7e7b073969301097b4e04fd15e3f2b0a2e11279f put the sidebars in place, now i need your help for the styling part :)

mercime commented 8 years ago

A bit late, but this is how I did the layout for the screenshot https://buddypress.org/support/topic/front-php-and-buddypress-2-6/ Also for consideration, alternative ways of presenting content in the group/member front.php thinking about those who want their images set across instead of vertically. bpn-widget-home

hnla commented 6 years ago

Closing... The primary functionality here is in place i.e dynamic sidebars etc, however an approach to producing a layout for these hasn't been explored and should be looked at in future versions.