Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79849

Options to disable Global search or Search forums blocks in mobile app version 4.3

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-79849-403
    • MDL-79849-master
    • Hide
      1. As an admin, enable “Web services for mobile devices” on Site administration ► Advanced features
      2. Save changes
      3. Go to Site administration ► Plugins ► Web services ► Manage tokens
      4. Create a WS Token for a non-admin user on the site
      5. Note the token
      6. Go to Site administration ►Mobile app ►Mobile features
      7. Under "Disabled features" Choose the following options:
        1. Blocks > Global search
        2. Blocks > Search forums
      8. Save changes
      9. Open a terminal/console and execute the following command:
        • You need to replace the WSTOKEN with the token created in step 2 and the URL of your moodle instance

          curl 'URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=WSTOKEN&section=mobileapp' | python -m "json.tool"
          

        1. Confirm that you see the following items listed in the tool_mobile_disabledfeatures part of the response:
          1. CoreBlockDelegate_AddonBlockGlobalSearch,CoreBlockDelegate_AddonBlockSearchForums
      10. Now, go back to Site administration ►Mobile app ►Mobile features
      11. Under "Disabled features" unselect all options (hold ctrl and click on the option)
      12. Save changes
      13. Execute the CURL request again and check that the tool_mobile_disabledfeatures value is empty
      Show
      As an admin, enable “Web services for mobile devices” on Site administration ► Advanced features Save changes Go to Site administration ► Plugins ► Web services ► Manage tokens Create a WS Token for a non-admin user on the site Note the token Go to Site administration ►Mobile app ►Mobile features Under "Disabled features" Choose the following options: Blocks > Global search Blocks > Search forums Save changes Open a terminal/console and execute the following command: You need to replace the WSTOKEN with the token created in step 2 and the URL of your moodle instance curl 'URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=WSTOKEN&section=mobileapp' | python -m "json.tool" Confirm that you see the following items listed in the tool_mobile_disabledfeatures part of the response: CoreBlockDelegate_AddonBlockGlobalSearch,CoreBlockDelegate_AddonBlockSearchForums Now, go back to Site administration ►Mobile app ►Mobile features Under "Disabled features" unselect all options (hold ctrl and click on the option) Save changes Execute the CURL request again and check that the tool_mobile_disabledfeatures value is empty

      We have included certain functionality in the mobile app such as global search that should be reflected in the list of features that can be disabled.

      Specifically:

      • A new option to disable the global search block
      • A new option to disable the search forums block

        1. MDL-79849_test1.png
          MDL-79849_test1.png
          32 kB
        2. MDL-79849_test2.png
          MDL-79849_test2.png
          94 kB
        3. MDL-79849_test3.png
          MDL-79849_test3.png
          92 kB

            jleyva Juan Leyva
            jleyva Juan Leyva
            Rodrigo Mady Rodrigo Mady
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 50 minutes
                2h 50m

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