modx只显示html代码,不显示模板

发布于 2025-01-03 00:40:34 字数 125 浏览 2 评论 0原文

我已经安装了 ModX 并在 Extensionmanager 中下载了“基本”模板!我在资源的第一页选择了基本模板!我找不到全局设置来选择模板?我的问题是,如果我访问该网站,我只能看到显示的纯 html 代码,没有网站!这是为什么呢?

I have installed ModX and Downloaded the "Basic" Template in the Extensionmanager! I chose the Basic Template at my first Page for the Resource! I cant find a Globalsetting to choose an Template? My problem is that if iam going to the site i only get the pure html code shown, no website! Why is this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

断桥再见 2025-01-10 00:40:34

AFAIK 没有“全局设置”来选择模板。 MODX 的好处之一是每个资源都可以指定要使用的模板。所以你可以根据需要混合搭配。

AFAIK there is no "Globalsetting" to choose a template. One of the nice things with MODX is that each resource can specify which template to use. So you can mix and match as required.

め七分饶幸 2025-01-10 00:40:34

您可以检查是否已在 head 中设置基本 href 标记,如下所示:

<base href="http://www.yoursite.com"/>

它将告诉网站从哪里开始查找您已包含在标记中的其他文件。

You could check if you have set the base href tag in head like this:

<base href="http://www.yoursite.com"/>

It will tell the site where to start looking for the other files that you have included in your markup.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文