orchardcms

Is it possible to get standard ASP.NET MVC Unobtrusive Validation to work in Orchard CMS?

放肆的年华 提交于 2019-12-01 09:29:25
问题 I'm trying to build a custom module to integrate with Orchard CMS to implement a business application. While Orchard CMS is an MVC application, it doesn't seem possible (or, at least easy) to do all the things that can be done "out of the box" with MVC. I'm trying to get unobtrusive validation to work on my view but can't seem to get this to work. Update : As per Rohan West's advice below, I've now got the scripts included in the page using the ResourceManifest class and the Script.Require

IDX21323 OpenIdConnectProtocolValidationContext.Nonce was null, OpenIdConnectProtocolValidatedIdToken.Paylocad.Nonce was not null

▼魔方 西西 提交于 2019-12-01 07:28:37
问题 I'm attempting to authenticate for Azure AD and Graph for an Intranet (Based off Orchard CMS), this functions as expected on my local machine, however, when accessing what will be the production site (already set up with ssl on our internal dns), I get the above error at times, it's relatively inconsistent, others in my department while accessing usually get this error. My Authentication Controller is as follows: public void LogOn() { if (!Request.IsAuthenticated) { // Signal OWIN to send an

Can't load image from project folder in Orchard module

我的未来我决定 提交于 2019-12-01 06:36:02
I'm trying to insert a image in my Orchard module, but I'm having some problems. <img src="@Href("~/Modules/Orchard.Slider/Content/img/other.jpg")"/> In my view i wrote thibut the image is not loading, it says that resource is not found. However, if I put my picture in Orchard.Users module folder, it is working: <img src="@Href("~/Modules/Orchard.Users/Content/img/other.jpg")"/> Does anyone know why this is happening? Is this a bug, or I'm missing something? Just to add, that when I tried to build the same module for the first time, I loaded image from my folder normally (with the first line

Using Alternatives for Document.cshtml in Orchard CMS

大憨熊 提交于 2019-12-01 05:45:50
问题 I am currently working on a website that requires the ability to overwrite the document.cshtml file so that I can apply a specific CSS-class based on the user's current location. I have attempted to use URL alternatives such as: Document.cshtml Document-url-AreaA.cshtml Document-url-AreaB.cshtml Document.url-AreaC.cshtml however it appears that all of them use the Document.cshtml as opposed to using one based on the URL. I could easily understand that this is the intended purpose, however I

How to handle cross-domain web service calls from JS in Orchard CMS

依然范特西╮ 提交于 2019-12-01 05:10:30
I am trying to call a web service cross domain from within an HTML widget. This does not seem to work. It worked great under the same domain. I am trying to create a log in page within Orchard that could be used to log in to my software on another domain. The web service is validating the user credentials and returning a boolean which then would generate the users authentication. I read that I could use an HTTP Handler or another web service (on the Orchard side) to call the web service on the other domain, but I'm not familiar enough with MVC or Orchard to do this. How can I add one of these

WebForms page inside of Orchard CMS Application

假如想象 提交于 2019-12-01 05:06:55
I'm trying to include a webforms (.aspx) page inside of an Orchard 1.2 application. I've tried adding back the aspx handler in the web.config <add path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" /> and added code to the Global.asax to try and get routing to ignore aspx requests routes.IgnoreRoute("{resource}.aspx/{*pathInfo}"); I'm still receiving a 404 response anytime I request the aspx page. How do I make this work? Here's a web.config that has worked for me: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <handlers accessPolicy="Script"> <add name=

How to use Glimpse in Orchard CMS

笑着哭i 提交于 2019-12-01 04:36:57
I'm new to Orchard CMS. I want to use Glimpse in Orchard cms and config it as quick start , but when I go to http://localhost:30320/OrchardLocal/glimpse.axd it show error message "The resource cannot be found" Anyone know how to resolve it, please show me. Thanks! You need to modify the web.config in the Orchard.Web folder. If you installed Glimpse using NuGet, it added two settings to the web.config to tell the web server to use Glimpse to handle the glimpse.axd resource. The problem is the Orchard.Web\web.config file's <httpHandlers> and <handlers> sections both include a catch all handler

Can't load image from project folder in Orchard module

北慕城南 提交于 2019-12-01 03:48:40
问题 I'm trying to insert a image in my Orchard module, but I'm having some problems. <img src="@Href("~/Modules/Orchard.Slider/Content/img/other.jpg")"/> In my view i wrote thibut the image is not loading, it says that resource is not found. However, if I put my picture in Orchard.Users module folder, it is working: <img src="@Href("~/Modules/Orchard.Users/Content/img/other.jpg")"/> Does anyone know why this is happening? Is this a bug, or I'm missing something? Just to add, that when I tried to

How to use Glimpse in Orchard CMS

筅森魡賤 提交于 2019-12-01 02:09:25
问题 I'm new to Orchard CMS. I want to use Glimpse in Orchard cms and config it as quick start, but when I go to http://localhost:30320/OrchardLocal/glimpse.axd it show error message "The resource cannot be found" Anyone know how to resolve it, please show me. Thanks! 回答1: You need to modify the web.config in the Orchard.Web folder. If you installed Glimpse using NuGet, it added two settings to the web.config to tell the web server to use Glimpse to handle the glimpse.axd resource. The problem is

Orchard data insert/delete for non content item

孤街浪徒 提交于 2019-12-01 00:44:05
I am intending to insert/delete some information in a module's Action (using Orchard Rules-Action API) in a one-column table in the database. What is the best way of doing such tasks i.e. Data manipulation of non-content items. I do not want to go by the "Create a content type" route. I simply want to persist some non-content data in the database and query/delete them. namespace xyz.Models { public class Task { public virtual int ContentId { get; set; } public virtual int Retries { get; set; } } } SchemaBuilder.CreateTable("Task", table => table .Column<int>("ContentId") .Column<int>("Retries"