ContextInstitute / bfcom

http://bfn.context.org
GNU General Public License v3.0
4 stars 1 forks source link

Took first steps towards building a custom submenu system #64

Closed DavidScottBernstein closed 5 years ago

DavidScottBernstein commented 5 years ago

Related to #17, created a proof-of-concept using a conditional that acts as a filter in nav-bfc-submenu.php to display submenu items 'Forum Members Activity' on the page groups/bfnet-web-team/.

DavidScottBernstein commented 5 years ago

@iangilman The David15 branch has a proof-of-concept for putting submenu items 'Forum Members Activity' on the page groups/bfnet-web-team/. I did this by adding a conditional to the while loop in nav=bfc=submenu.php to act as a filter. This approach doesn't let us change the sequence of submenu items so I'm going to try a different approach where I manipulate the nav item structure programmatically with calls such as bp_core_new_subnav_item() rather than picking up the submenu from what's defined in the Wordpress UI. This will be a bit more involved but hopefully, it will give us the level of control we want. Does this sound like a good plan or do you prefer I build on the current proof-of-concept? I'm sure I'll have questions as I proceed.

iangilman commented 5 years ago

@DavidScottBernstein Yes, if you're up for digging into it, I think we do want the further level of control beyond just filtering, so please do see what you can make happen!

DavidScottBernstein commented 5 years ago

@iangilman Okay, I'll work on it.

iangilman commented 5 years ago

This was good research, but it looks like #66 supersedes it. I'm closing this now.