问题描述
我有几个一般性的问题.刚踏入 Orchard CMS.如果他们看起来很愚蠢,那么道歉!
I have a couple of general questions please. Just stepping into Orchard CMS. So apology if they look stupid!
今天我从 Theme Gallery 安装了一个名为 Metro
的主题.它也可以在主题选择页面上看到.但是,Orchard CMS 中的文件和文件夹结构保存在哪里?我查看了 Theme
文件夹,但它不在那里.我想看看结构是如何放置的,这样我就可以自己创建一个
Today I installed a theme called Metro
from Theme Gallery. It is visible on theme selection page as well. But where the files and folder structure are got saved in Orchard CMS? I looked into Theme
folder but it is not there. I want to see how the structure is placed so that I can create one myself
还有一件事.主题 .png 文件显示了一个不错的布局,但是当我激活它时,布局会完全不同.这是为什么?
One more thing. Theme .png file shows a nice layout but when I activate it the layout comes up completely different. Why is this?
最后,我使用 Orchard 的 Web 界面安装了我的网站,并且运行良好.但是当我尝试运行 orchard >codegen 主题 CreditLine
,它说Command codegen 不存在.
And finally, I installed my site using Orchard's web interface and it is running fine. But when I tried to run orchard > codegen theme CreditLine
, it said Command codegen doesn't exist.
然后我从命令提示符 (orchard >
) 运行安装实用程序并显示
I then run Setup utility from command prompt (orchard >
) and it displayed
使用此表前缀在此数据库中检测到以前的 Orchard 安装.
这清楚地表明我通过网络界面进行的设置是成功的.但是我仍然无法运行 codegen
命令甚至 help codegen
.后一个命令显示 Command codegen 不存在
!
Which clearly says the setup I did through web interface was successful. But still I am not able to run codegen
command or even help codegen
. The latter command shows Command codegen doesn't exist
!
果园版:v.1.10.1.0
推荐答案
1) 应该安装在 Themes/TheThemeName
下,或者本地安装在 src/Orchard.Web/Themes/下主题名称
1) It should be installed under Themes/TheThemeName
, or locally, under src/Orchard.Web/Themes/TheThemeName
2) 可能是您安装了旧主题.不确定,因为您没有详细说明问题所在.
2) It could be that you installed an old theme. Not sure because you don't give many details over what goes wrong.
3) 您首先必须启用 codegen
模块.通过启动你的 Orchard 来做到这一点,转到 modules => Codegen => Enable.或者在orchard.exe
中运行:feature enable Orchard.CodeGeneration
3) You first have to enable the codegen
module. Do this by starting up your Orchard, go to modules => Codegen => Enable. Or run in the orchard.exe
: feature enable Orchard.CodeGeneration
这篇关于Orchard CMS:从 Gallery 安装时保存新主题结构和文件的地方的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!