BuddyPress Docs
Display Docs below BP group subnav, as before (3 posts)

  1. SydneyDesigner
    Posted 3 years ago #

    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.


  2. Boone Gorges
    Plugin Author

    Posted 3 years ago #

    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.

  3. SydneyDesigner
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Docs
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.