Creating a module using Orchard

"create module pass" for Orchard does not work with code in the Orchard Mercurial repository at the head of default or dev branches. Does anyone know how I can create a new Orchard module with something later than the March release?

It would be great if there was an updated sample module somewhere, but I do not see anything except the built-in modules that are not tied to the main menu and everything is very complicated - “hello world” would be much better!

I understand that Orchard is not officially released, but I am trying to use it for a simple CMS for a new project that I am just starting (I hope I can get it to work with a later version of Orchard at the time of release).

+3
source share
3 answers

Found. There is a new configuration parameter that allows you to turn modules on and off. Modules are now disabled by default.

You can enable modules in admin> functions.

+3
source

After 8 years, we use Orchard 1.10.x, and one of the ways to create a module is through the command line. Here are the steps:

  1. Go to the \ bin folder of your garden solution.
  2. In the address bar, enter cmdthat will open a command prompt window
  3. In a window like cmd, orchardthis initializes Orchard sessions
  4. Then enter feature enable Orchard.CodeGeneration, this will enable the code generation module, since it is disabled by default
  5. Finally, enter codegen module LearnOrchard, this will create a new module and place it in your folder .. \ src \ Orchard.Web \ Modules

+1

7 8 Orchard 1.10.x, - . :

  • Go to the \ bin folder of your garden solution. In the address bar, enter cmdthat will open a command prompt window
  • In the cmd window, orchardthis initializes the Orchard Sessions
  • Then enter feature enable Orchard.CodeGeneration, this includes the code generation module, since it is disabled by default.
  • Finally, enter codegen module TestModule, this will create a new module and place it in the folder .. \ src \ Orchard.Web \ Modules

You can get more information here.

0
source

Source: https://habr.com/ru/post/1752619/


All Articles