Orchard CMS: Where new theme structure and files get saved when installed from Gallery

末鹿安然 提交于 2019-12-13 23:25:48

问题


I have a couple of general questions please. Just stepping into Orchard CMS. So apology if they look stupid!

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

One more thing. Theme .png file shows a nice layout but when I activate it the layout comes up completely different. Why is this?

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.

I then run Setup utility from command prompt (orchard >) and it displayed

A previous Orchard installation was detected in this database with this table prefix.

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!

Orchard version: v.1.10.1.0


回答1:


1) It should be installed under Themes/TheThemeName, or locally, under src/Orchard.Web/Themes/TheThemeName

2) It could be that you installed an old theme. Not sure because you don't give many details over what goes wrong.

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




回答2:


After a lot of Googling and struggle I found a nice community here where I got my answer!

Orchard Repository on Github defaults to dev branch which I overlooked completely when cloned it for the first time! So I removed everything from my local and cloned the source again but from master branch this time.

No more compilation error or Command Line issue popped up. Orchard.CodeGeneration feature got enabled from CLI this time without a problem. Everything else seems to be working fine as well.

Steps:
1. Removed source from my local which I cloned from dev branch initialy
2. Cloned Orchard from master branch
3. Opened solution in VS2015
4. Compiled, run and setup my first site
5. And finally ran feature enable Orchard.CodeGeneration from orchard command prompt.



来源:https://stackoverflow.com/questions/40549895/orchard-cms-where-new-theme-structure-and-files-get-saved-when-installed-from-g

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!