Support » Plugins and Hacks » BuddyPress Docs » Display Docs below BP group subnav, as before

Display Docs below BP group subnav, as before

  • Thank you for continuing to improve BP Docs Boone. I’ve upgraded to 1.24 but have encountered an issue which I hope you can help with please, by pointing me at the bits of code I need to modify.

    I’m using the BP Default theme. I’d like to be able to display each BP Doc the same way Docs were displayed with BP Docs 1.x, namely below the BP group subnav bar with all the group tabs visible (like forum and reviews).

    I hope you can help please. Many thanks.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Boone Gorges


    Hi SydneyDesigner. The ability to view single Docs within the context of a group has been removed in BP Docs 1.2+, because Docs are no longer necessarily tied to groups. In terms of code, this method is radically different from (and, for what it’s worth, radically simpler than) the previous method of displaying within a group. If you were really dead-set on displaying group Docs within groups, you could do it, but it will be pretty hard. Briefly, you’ll need to:
    – Filter Doc URLs (bp_docs_get_doc_link()) so that they point to group-based URLs
    – Modify the BP_Docs_Group_Extension class so that it’s expecting that kind of URL (probably start with the display() method)
    – Write some template-loading logic for reading, editing, and viewing the history of Docs.

    Alternatively, if you’re gung-ho on keeping Docs the way they were before 1.2, you might consider rolling back and not upgrading.

    Sorry there’s not an easier answer! Let me know if you get started on this project and need some pointers.

    Many thanks for your explanation Boone. That helps to put it in perspective. Sounds like a pretty hard mod, so I won’t go that route.

    BP Docs is a strategic part of my website, so I want to keep my version current with your ongoing developments. I can also see the benefits of your new direction (separating the docs from the groups)\, so I’ve adjusted my website to fit. I think it works fine. So thanks again for your guidance, and for BP Docs, and of course for your part in BuddyPress itself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Docs below BP group subnav, as before’ is closed to new replies.