如何在 Orchard 的内容项中包含自定义 CSS 或 Javascript [英] How to include custom CSS or Javascript on a Content Item in Orchard

查看:37
本文介绍了如何在 Orchard 的内容项中包含自定义 CSS 或 Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时我想向页面添加一些自定义 CSS 或 Javascript,但 HTML 编辑器无法正常处理,即使在使用文本对话框时也是如此.

Sometimes I want to add some custom CSS or Javascript to a page but the HTML editor doesn't handle this gracefully, even when using text dialog.

我可以使用备用视图,但是每次编辑时我都必须将视图文件上传到我的主机.

I could use an alternate view but then I have to upload the view file to my host every edit.

有什么想法吗?

推荐答案

好的,我找到了一个模块 (Vandelay.Classy) 可以做到这一点.

Ok, I found a module (Vandelay.Classy) that does exactly this.

http://orchardproject.net/gallery/List/Modules/Orchard.Module.Vandelay.Classy

这篇关于如何在 Orchard 的内容项中包含自定义 CSS 或 Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆