Where are course module settings stored?

Where are course module settings stored?

Владимир Филиппов -
Number of replies: 2

Hello! Where are the settings for the appearance of the hyperlink (course element) stored (in the database or somewhere else)? And how can I change the value of this parameter for all courses (for example, so that hyperlinks open in a new window, and not a pop-up)?


Ngā whakawākanga toharite: -
In reply to Владимир Филиппов

Re: Where are course module settings stored?

Mary Cooch -
Pikitia o Documentation writers Pikitia o Moodle HQ Pikitia o Particularly helpful Moodlers Pikitia o Testers Pikitia o Translators
Hello. The site settings are in admin/settings.php?section=modsettingurl
I think they will only apply for new hyperlinks (URLs) but hopefully someone can reply and tell you how to change existing ones in the database.
Ngā whakawākanga toharite: -
In reply to Владимир Филиппов

Re: Where are course module settings stored?

Gregor McNish -
Pikitia o Particularly helpful Moodlers
The database table for urls is mdl_url
there is a display field in that table which aligns to the above select box
You can see the values in the html for the select box -- new window is 3

<select class="custom-select" name="display" id="id_display" data-initial-value="3">
            <option value="0">Automatic</option>
            <option value="1">Embed</option>
            <option value="2">In frame</option>
            <option value="3" selected="">New window</option>
            <option value="5">Open</option>
            <option value="6">In pop-up</option>
        </select>
Ngā whakawākanga toharite: Useful (1)