Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4733

Add course-id data attribute to course and categories

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5.0
    • Courses
    • Hide

      Test on any device of your choice.

      1. Enter a site and check you can view a course in the my courses page and recent courses block.
      2. Annotate the course ID
      3. Add remote CSS to the site (replacing the course id): [data-course-id="3"] { display: none !important; }
      4. Restart the app and check the course is not visible.

       

      Show
      Test on any device of your choice. Enter a site and check you can view a course in the my courses page and recent courses block. Annotate the course ID Add remote CSS to the site (replacing the course id): [data-course-id="3"] { display: none !important; } Restart the app and check the course is not visible.  
    • MOODLE_405_STABLE
    • Moodle Apps - 2025 i1

      Add course-id data attribute to course and categories, so it can be controlled using CSS

      This CSS rule will find all the instances of the course with id 3 and hide them
      [data-course-id="3"]

      { display: none; }

            pferre22 Pau Ferrer
            pferre22 Pau Ferrer
            Dani Palou Dani Palou
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 51 minutes
                1h 51m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.