how to make a course offline?? (but there is in database)

698 views
Skip to first unread message

dim kar

unread,
Aug 4, 2015, 2:31:39 PM8/4/15
to General Open edX discussion
I have installed the birch version of edX.

I would like to ask you how to make a course offline from the list of courses.. I mean not to be seen. It will exits to the database but it won't be shown in front of the site.

Thanks in advace!

Best Regards,
Dimosthenis

liu...@lektorium.tv

unread,
Aug 5, 2015, 7:47:53 AM8/5/15
to General Open edX discussion
Hello Demosthenis,
  I think the easiest way to show/hide courses from the list is to use the Advanced Setting "Course Visibility In Catalog" (the description of possible options you can find below the setting). To make it work, you should edit your server settings (at least cms.env.json and lms.env.json) and set key
COURSE_CATALOG_VISIBILITY_PERMISSION to 'can_see_in_catalog' or 'can_see_about_page' (the default is 'see_exists').

Hope that helps,
Liubov

вторник, 4 августа 2015 г., 21:31:39 UTC+3 пользователь dim kar написал:

Chris Dodge

unread,
Aug 5, 2015, 10:37:55 AM8/5/15
to General Open edX discussion
Yes, this is correct and is how we manage the visibility of courses on one of our sites. Let me know if you have any particular questions - I'm the author of those course visibility settings.

- Chris
Message has been deleted

dim kar

unread,
Aug 5, 2015, 1:43:05 PM8/5/15
to General Open edX discussion
Hello again,

I have installed edX birch edition but into the path /edx/app/edxapp/ I saw the 2 files lms.env.json and cms.env.json but I counld not find the set key 
COURSE_CATALOG_VISIBILITY_PERMISSION. Is this the correct name of the value, please help me to find it.

I explain you again that I don't want to delete the course from database but to hide from the "Find Courses" page. I would like not to see in lms but only on Studio..

Thanks in advance,

Chris Dodge

unread,
Aug 5, 2015, 3:15:10 PM8/5/15
to General Open edX discussion
Yes, this will hide visibility from the home page/find courses pages but not delete the course.

Just add those keys in the lms.env.json file if they are not present and restart services. Then in Studio in Advanced Settings, you will see a field called "

Course Visibility In Catalog

"

Set that value to what visibility restrictions you'd like to apply. If you want to hide from catalog but let people see the About page in order to allow for enrollments, set it to "about". If you don't want either to appear in catalog *and* you don't want about page to be visible, set it to "none"

Hope that helps

dim kar

unread,
Aug 5, 2015, 6:01:06 PM8/5/15
to General Open edX discussion
I would like to inform you that the set key COURSE_CATALOG_VISIBILITY_PERMISSION is in the below file: 

edx/app/edxapp/edx-platform/lms/envs/common.py (because I found it there!)

As you said we need to change the value from 'see_exists' to 'see_in_catalog'

Thanks for the help, because with your help I know what change to do. 

Best Regards,
Dimosthenis




Τη Τρίτη, 4 Αυγούστου 2015 - 9:31:39 μ.μ. UTC+3, ο χρήστης dim kar έγραψε:

Chris Dodge

unread,
Aug 5, 2015, 10:53:35 PM8/5/15
to General Open edX discussion
You can change it in common.py, but I'd recommend simply adding in your lms.env.json (and restart services)

"COURSE_CATALOG_VISIBILITY_PERMISSION": "see_in_catalog"

If you change code in common.py it might make this more difficult when you want to rebase against a new release of Open edX

dim kar

unread,
Aug 6, 2015, 2:48:00 PM8/6/15
to General Open edX discussion
I have inserted the command line:
"COURSE_CATALOG_VISIBILITY_PERMISSION": "see_in_catalog"

into edx/app/edxapp/lms.envs.json file but when I restart services using the command

sudo /edx/bin/supervisorctl restart edxapp: & sudo /edx/bin/supervisorctl restart edxapp_worker:
or 
sudo /edx/bin/supervisorctl restart all 

I have the below error:

dimos@dimos-H61M-D2-B3:/edx/app/edxapp$ sudo /edx/bin/supervisorctl restart all

xqueue_consumer: stopped
forum: stopped
notifier-celery-workers: stopped
analytics_api: stopped
certs: stopped
edx_notes_api: stopped
notifier-scheduler: stopped
xqueue: stopped
edxapp:lms: stopped
edxapp:cms: stopped
edxapp_worker:cms_low_3: stopped
edxapp_worker:lms_high_mem_2: stopped
edxapp_worker:lms_default_3: stopped
edxapp_worker:cms_high_1: stopped
edxapp_worker:lms_low_1: stopped
edxapp_worker:cms_default_4: stopped
edxapp_worker:lms_high_4: stopped
insights: stopped
xqueue_consumer: started
forum: started
analytics_api: started
certs: started
edx_notes_api: started
xqueue: started
edxapp:lms: ERROR (abnormal termination)
edxapp:cms: started
edxapp_worker:cms_low_3: started
edxapp_worker:lms_high_mem_2: started
edxapp_worker:lms_default_3: ERROR (abnormal termination)
edxapp_worker:cms_high_1: started
edxapp_worker:lms_low_1: ERROR (abnormal termination)

How could I solve this issue?

Thanks in advance again!

Best Regards,
Dimosthenis 


Τη Τρίτη, 4 Αυγούστου 2015 - 9:31:39 μ.μ. UTC+3, ο χρήστης dim kar έγραψε:

Chris Dodge

unread,
Aug 6, 2015, 4:43:07 PM8/6/15
to General Open edX discussion
My guess is that your lms.env.json file is not well formatted JSON. check the following:

Are you using double quotes for your strings?
Are you properly using commas to separate key/value pairs? (I hit this one from time to time myself)

- Chris

Adms

unread,
Nov 15, 2016, 11:04:33 PM11/15/16
to General Open edX discussion
Hi, 
I am working on dogwood. Moreover, I cannot see any content on student's dashboard. 
I tried this "see_in_catalog," "see_above" as well, but I cannot solve the problem.
-Adam

rga...@4crew.es

unread,
Feb 20, 2017, 9:15:35 PM2/20/17
to General Open edX discussion
Chris,

I added the key to the json files you said and when I restart the services I get an error 500 in the dashboard (some other pages work as usual).

Then I removed the key from the lms.env.json file and the error disappeared. But the courses I wanted to hide are still there, visible (and I've changed to "none" the course visibility in catalog at advanced settings).

What's going on? Any idea?

Thanks in advance.
Message has been deleted
Message has been deleted

Vijaya lakshmi T.G.

unread,
Apr 25, 2018, 2:51:58 AM4/25/18
to General Open edX discussion
Along with Catalog Visibility you should also set the end date as previous date .This way the course will be present in DB but will not be visible to the Learners
Reply all
Reply to author
Forward
0 new messages