Skip to:
Content
Pages
Categories
Search
Top
Bottom

Customizing the Courseware Menu & Paging Question

  • Avatar of mcjdesign
    mcjdesign
    Member

    @mcjdesign

    I didn’t want to make a mess and open two separate topics. Hope you don’t mind!

    #1: CUSTOMIZE COURSEWARE MENU


    I was wondering if there was a way to inject CSS class names into the courseware menu items. I would like to hide “Schedule” and maybe “Course Description” to reduce unused and redundant information.

    #2: PAGING QUESTION


    Is there a way to take the paging feature that allows you to jump between Previous and Next lectures and turn it into a series of tabs, or rather numeric pagination, to replace the Previous and Next?

    EXAMPLE: Instead of:
    “Previous Article & Next Article”

    Can we have: 1 2 3 4 5 6 7 8 to represent the number of lectures currently setup in the active group/course?

    Thanks!
    Matt

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Stas SuČ™cov
    Stas Su?cov
    Participant

    @sushkov

    I would recommend you this small plugin to achieve #1.
    https://gist.github.com/1510284

    Regarding #2:
    The point of next and previous navigation was to eliminate lecture skips, a set of lectures is not like a blog where you read what you like, the ordering is mandatory.

    Still to add a pagination, take a look at this hook:
    https://github.com/scholarpress/buddypress-courseware/blob/master/lectures/lectures.class.php#L181

    Anything you want to hook to it, should go right below the lecture content.
    Good luck!

    Avatar of mcjdesign
    mcjdesign
    Member

    @mcjdesign

    Hey Stas,

    Thanks for the help! I’ll take a look at those and let you know if I have questions.

    I agree with you about the pagination, but the client wants the ability to skip around in our setup. They have spoken! :)

    Thanks!

    Avatar of mcjdesign
    mcjdesign
    Member

    @mcjdesign

    Stas,

    With that plugin you sent for my first issue, how could I alter that to include other menu items? If I want to hide Schedules AND Course Description AND maybe Assignments? I can kind of read the code, but it’s not immediately clear as to where a mod might be inserted.

    Thanks!
    Matt

    Avatar of mcjdesign
    mcjdesign
    Member

    @mcjdesign

    For the second issue, pagination, I appreciate the code hook. Unfortunately I’m not very good at reading and hooking into that stuff. Any extra feedback from anyone would be greatly appreciated. I admit, it’s pretty severe hand holding, I won’t lie! :) But while I hope to be able to understand this eventually, I don’t have a lot of time to spend on it right now as we’re on a deadline.

    Thanks!

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

You must be logged in to reply to this topic.