Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX OpenLab Support

Public Group active 9 months, 2 weeks ago

Have a question about Commons In A Box OpenLab, our new platform for open learning? Join the group and post your question here. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

Menu area on Course Group Pages

  • This topic has 6 replies, 3 voices, and was last updated 4 years, 3 months ago by Bree.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • November 27, 2018 at 5:32 pm #8094
    Troy Welch
    Participant

    Hi guys, loving the look of the Openlab theme. I could use some advice/help on a thing.

    What I want to do is put an additional menu area in the sidebar on the Course Group pages. (See attached pic).

    The trick is I would like to keep this alteration in a child theme which normally can be done with a simple register_nav_menu function/add_action in functions.php and a call to wp_nav_menu() in the template.. The difficulty is that the sidebar is built in the sidebar-funcs.php file which is not a template file and not overrideable by a similar file in the child theme.

    Do you guys know of another way I can slip a menu area into the Course Group pages without cutting into main theme files?

    Thanks,

    Troy

    Attachments:
    You must be logged in to view attached files.
    November 28, 2018 at 9:37 am #8096
    Bree
    Participant

    Hi Troy,

    Thanks for the feedback!  I can’t answer your question myself, but I’ll check in with the rest of the team and find an answer for you.

    Best,

    Bree

    November 29, 2018 at 8:32 am #8098
    Boone Gorges
    Keymaster

    Hi Troy – You’re right that this is not an optimal setup. What you’re seeing is a remnant of the original theme that the OpenLab theme grew out of. A number of these instances were cleared up before launch, but not this one. See https://github.com/cuny-academic-commons/openlab-theme/issues/244

    In the medium term, we should do the necessary work to move the openlab_bp_sidebar() logic into template parts. I’ve opened https://github.com/cuny-academic-commons/commons-in-a-box/issues/157 to track this.

    In the short term, you might consider overriding the /buddypress/groups/single/home.php template in your theme, and then inserting your custom menu markup just after the call to openlab_bp_sidebar(). Then, you can use a bit of JavaScript to move the rendered markup in the DOM. Kinda ugly, but it would work without hacking the main theme.

    November 29, 2018 at 3:46 pm #8099
    Troy Welch
    Participant

    Thanks Boone, that is quite helpful. I’ll either go that route or maybe we’ll just live with a theme hack for now. One of the things I love about CBox environments is the groups, very first thing I do is pop open a private admin group for internal documentation, hacks, to-do lists and so forth.

    We are in the process of putting an environment together for a small online program using CBox Openlab. There are a couple of other things I’ve noticed as I’ve been working some are more ‘feature-requesty’, but there is an error or two I’m getting.

    Would you rather this stuff come through the forms or github issues? If the latter, which repo. (I noticed your two links above were on the CBox repo rather than the theme repo.

    Thanks a lot for the effort you guys put in on CBox and huge thanks for sharing it.

    Troy

    December 3, 2018 at 9:01 pm #8102
    Bree
    Participant

    Hi Troy,

    You’re welcome to open up GitHub issues for any feature requests and bugs.  Here is the repo: https://github.com/cuny-academic-commons/commons-in-a-box/issues

    If you don’t mind, could you describe the errors first here, just to make sure they’re not something I could help with before raising them as tickets?

    Thanks!
    Bree

    December 4, 2018 at 12:40 pm #8103
    Troy Welch
    Participant

    Thanks Bree, I’ll do that. I have a couple of things I’ll break out into separate threads. Makes a better history.

    Troy

    December 4, 2018 at 2:59 pm #8107
    Bree
    Participant

    Thanks so much, Troy!  I’ll look through these and get back to you about next steps.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX OpenLab Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 22

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    274 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register