orchardcms

WebApi Route returns Not Found in Orchard Module

强颜欢笑 提交于 2019-12-10 15:09:53
问题 I am creating an Orchard module where i want to add a WebApi controller. My Module.txt: Name: ModuleName AntiForgery: enabled Author: The Orchard Team Website: http://orchardproject.net Version: 1.0 OrchardVersion: 1.0 Description: Description for the module Features: ModuleName: Description: Description for feature ModuleName. I have added an ApiRoutes class: using Orchard.Mvc.Routes; using Orchard.WebApi.Routes; using System; using System.Collections.Generic; using System.Linq; using System

Routing a custom controller in Orchard CMS

天大地大妈咪最大 提交于 2019-12-10 14:55:51
问题 I'm having some trouble setting up the routing to a custom controller in Orchard. I've created a View: @model dynamic @{ Script.Require("jQuery"); } @using (Html.BeginForm("Send", "Email", FormMethod.Post, new { id = "contactUsForm" })) { <fieldset> <legend>Contact Us</legend> <div class="editor-label">Name:</div> <div class="editor-field"> @Html.TextBox("Name", "", new {style = "width: 200px"}) </div> <div class="editor-label">Email Address:</div> <div class="editor-field"> @Html.TextBox(

Orchard CMS simple user registration/authentication

两盒软妹~` 提交于 2019-12-10 13:48:08
问题 I think creating a simple user-registration on Orchard CMS should be easy? What I need is a simplest set of steps that need to be followed to use basic user registration/authentication in my test app, something similar to http://orchardproject.net/gallery/Users/Account/Register. I've been scanning through google results on this, but most only talk of customization through external modules, I dont think I'll need external modules for a simple user authentication mechanism? Register/ Login/

Empty content item after create/edit in Orchard

好久不见. 提交于 2019-12-10 11:46:13
问题 I'm using the guide to creating n-to-n relations in Orchard (ocs.orchardproject.net/Documentation/Creating-1-n-and-n-n-relations) with some slight modifications. While the sample code works well my own content part is always blank after I create or edit the item. I can't figure it out, because I swear my code is almost identical to theirs (with the exception of content parts having more/less unrelated fields). I suspect it might have to do with the Prefix in the Driver. I don't really know

Orchard CMS Speed Issues

我的未来我决定 提交于 2019-12-10 10:43:42
问题 I'm setting up an Orchard CMS site and noticing that it is incredibly slow. It is running on a VPS that hosts a couple of other MVC based websites which all run fine, so the server doesn't appear to be the issue. I've read that renaming the Sample.Host.Config file to Host.Config should fix the issue. Which it seems to do for a few hours, until randomly I then get the following error and the site no longer works. The type 'Orchard.Environment.Configuration.AzureBlobTenantManager' could not be

What is the proper way to add a Field to a custom Part in code?

徘徊边缘 提交于 2019-12-10 10:32:11
问题 There are several similar questions that sort of deal with this issue like this one or this one offering a pretty hacky solution. None of the ones out there have a clear satisfactory answer, or an answer at all, or are asking quite the same thing to begin with. Record public class MyPartRecord : ContentPartRecord { public virtual Boolean Property1 { get; set; } public virtual string Property2 { get; set; } } Part public class MyPart : ContentPart<MyPartRecord> { public Boolean Property1 { get

Orchard Contact Forms

百般思念 提交于 2019-12-10 02:11:36
问题 I've been trying to setup a contact form via Orchard CMS v1.6 but I'm not really sure how to do it. I tried installing the Custom Forms module but i think this isn't compatible with the latest version I'm using. Any suggestions? 回答1: The Custom Forms module is very powerful and flexible, but it's not obvious at first how to make a contact form using it. Once you've figured it out though you can do a lot more with it. Step 1 - Create a content type for the contact information you want to

Multi-tenancy support: Umbraco vs Orchard Project

一世执手 提交于 2019-12-10 01:21:22
问题 I am currently using an older version of Umbraco (4.03) and I have several basic sites (mostly 1 pagers) running under the same IIS Application. I have a shared hosting account with Winhost.com, which doesn't offer multiple site application roots, just domain pointers, so I'm limited to a single CMS installation that supports multi-tenancy. The Umbraco multi-tenancy setup is a bit hacky and I really need to upgrade. It seems that Orchard is more focused on multi-tenancy support. My Umbraco

How to include style sheets and js files inthe view of Orchard cms

假装没事ソ 提交于 2019-12-10 00:57:43
问题 How to include style sheets and js files inthe view of Orchard cms, Failed to load resource: the server responded with a status of 404 (Not Found) 回答1: Create a ResourceManifest.cs file in your Theme or Module. using Orchard.UI.Resources; namespace MyNameSpace { public class ResourceManifest : IResourceManifestProvider { public void BuildManifests(ResourceManifestBuilder builder) { var manifest = builder.Add(); manifest.DefineStyle("MyScriptName").SetUrl("~/Modules/MyModule/Scripts/scripts.js

Error - None of the constructors found with 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper'

試著忘記壹切 提交于 2019-12-09 16:48:18
问题 I have a custom module, Module1. In this module, I am referencing another custom module, Module2. Everything was working fine last week. I did a fresh re-install of Orchard this morning. Since then, I have been getting this error. None of the constructors found with 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' on type 'Module1' can be invoked with the available services and parameters: Cannot resolve parameter 'Module2' of constructor 'Void .ctor(...)'. Any idea