Where are course module settings stored?

Where are course module settings stored?

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


Average of ratings: -
In reply to Владимир Филиппов

Re: Where are course module settings stored?

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of 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 reply to Владимир Филиппов

Re: Where are course module settings stored?

by Gregor McNish -
Picture of 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>
Average of ratings: Useful (1)