Creating a static pages internal folder

Creating a static pages internal folder

by Ben Laor -
Number of replies: 0

I'm planning to use a folder with misc pages to use with the "static_pages" plugin (it basically gets a url and displays an iframe)
I want to know, is there a way to make an entire folder and all the folders it contains "moodle_internal"?
Meaning you'd have to be logged in to view the files and subfolders.
I know i can make it happen for a specific folder by adding an "index.php" file to it containing "defined('MOODLE_INTERNAL') || die();", but is there a way to make it automatic to all subfolder as well?

Average of ratings: -