Re: Buddypress breadcrumbs
ha HAAA breakthrough.
I figured out this much. But is there any logic or autodiscovery to it? Or does it just create “dumb” objects that you have to push around by hand (such as, “if you are on the groups page, display breadcrumbs x, y, and z”). In the readme.txt, JJJ says automatic adding of breadcrumbs is planned, so maybe that is the “smart” phase of this.
<style>
.breadcrumb-wrapper { border: 0px solid red; padding:3px; height:25px; clear:both }
.breadcrumb-list { border: 0px solid green; height:25px }
.breadcrumb { float:left; margin:2px; border: 0px solid blue }
</style>
<?php
/* put function bp_breadcrumbs_add( $name, $url, $desc, $parms, $img ) in places you want to add a breadcrumb */
// global $breadcrumbs_template; var_dump($breadcrumbs_template);
if (bp_has_breadcrumbs()) {
bp_breadcrumbs_add('Members', '/members');
bp_breadcrumbs_add('Groups', '/groups');
bp_breadcrumb_display( ' > ' );
}
?>