简体   繁体   English

将 Moodle 插件安装到根目录或重定向它

[英]Install Moodle plugin into root directory or redirect it

I'm in the process of programming my own static pages in moodle.我正在用 moodle 编写我自己的 static 页。 It works so far, but I have the whole thing running in the local environment in its own folder in the root directory "mymoodle.com/folder/".它到目前为止有效,但我在本地环境中在根目录“mymoodle.com/folder/”中它自己的文件夹中运行了整个东西。

Now I would like to install it as a plugin on the stable instance via the dashboard/frontend, but if I understand it correctly then only works with the available plugin types => path from the docu现在我想通过仪表板/前端将它作为插件安装在稳定实例上,但如果我理解正确,那么只适用于可用的插件类型 => 来自docu的路径

Is that only possible via FTP access?这只能通过 FTP 访问吗? Or is a plugin type not listed yet or have I overlooked one?还是尚未列出插件类型,或者我忽略了一个?

Is there a better moodle approach than plugin type "local"?有没有比插件类型“本地”更好的 moodle 方法?

I have already discovered the "Static Pages" plugin, but I don't really understand how they solve the redirect from /local/staticpage/ to /static/我已经发现了“静态页面”插件,但我不太明白他们是如何解决从 /local/staticpage/ 到 /static/ 的重定向的

Local Plugin folder is the best approach, if you are creating a plugin that doesn't comes under any of the other plugin types mentioned here .如果您要创建的插件不属于此处提到的任何其他插件类型,则本地插件文件夹是最好的方法。

However you can shift the folder (and make appropriate changes in files to require files) under the Moodle's root directory and it should work.但是,您可以将文件夹移动到 Moodle 的根目录下(并对文件进行适当的更改以需要文件),它应该可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM