Where are course module settings stored?

Where are course module settings stored?

di Владимир Филиппов -
Numero di risposte: 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)?


Media dei voti: -
In riposta a Владимир Филиппов

Re: Where are course module settings stored?

di Mary Cooch -
Immagine Documentation writers Immagine Moodle HQ Immagine Particularly helpful Moodlers Immagine Testers Immagine 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.
In riposta a Владимир Филиппов

Re: Where are course module settings stored?

di Gregor McNish -
Immagine 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>