• Hi David !
    Congrats for this amazing plugin !
    However, i’ve a question. Is it possible to add folders into the docs directory (“all docs” page). I can’t see the “Folder button” when i create a new doc but i can see it when i create a new doc in a group. I would like to propose to my clients the possibility to manage folders from the “all docs” page.
    I’ve found in git the Personal Tab for BuddyPress Docs but i don’t know how does it work ?..
    Thank you for your help !

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Cavins

    (@dcavins)

    Hi @mickeulkeul-

    Yes, folders were built to work anywhere. We focused the development on the groups section, because that’s where folders made the most sense to Boone and I. However, here’s an example plugin Boone wrote that adds folders to the personal view:
    https://github.com/boonebgorges/buddypress-docs-personal-tab/blob/master/buddypress-docs-personal-tab.php

    You can see the hooks needed to change the behavior, but the basic “enable” switch is as simple as this:

    // Adds the folders interface to "all docs" and "user docs" docs directories.
    add_filter( 'bp_docs_enable_folders_for_current_context', '__return_true' );

    Best,

    -David

    Thread Starter mickeulkeul

    (@mickeulkeul)

    waouh..simple as this…
    Thank you very much for your response David !…
    I would have another request… Does a list of hooks, filters or action exist somewhere ?
    Where could i find arguments like “bp_docs_enable_folders_for_current_context” for example ?
    thanks for your help

    Thread Starter mickeulkeul

    (@mickeulkeul)

    oops..i’ve just seen your link for the hooks.. sorry..

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘add folders into docs directory’ is closed to new replies.