orchardcms

Orchard CMS Error “ValueFactory attempted to access the Value property of this instance”?

自闭症网瘾萝莉.ら 提交于 2019-12-09 13:53:16
问题 I I am using orchard 1.8.1 and try to install the theme Bootstrap and it gives me the following errors. Can anyone help me out? Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance. Line 61: // Load the log4net thread with

ASP.NET Performance Profiling 404/500 errors

邮差的信 提交于 2019-12-08 17:43:39
问题 Using the Visual Studio Performance Explorer, with Cassini, I'm trying to launch profiling on my (Orchard CMS 1.4.0) ASP.NET MVC3 application, but I get this error: The web site could not be configured correctly; getting ASP.NET process information failed. Requesting http://localhost:30320/OrchardLocal/VSEnterpriseHelper.axd returned an error: The remote server returned an error: (404) Not Found. So I searched for a solution and found this article which didn't apply, because I'm using Visual

AntiForgery and JSON incompatible?

一个人想着一个人 提交于 2019-12-08 10:37:43
问题 I have been successfully using the AntiForgery option with Ajax in Orchard Modules for a while. Recently, I have been wanting to change from using the default ContentType = 'application/x-www-form-urlencoded; charset=UTF-8' to a JSON payload (ContentType='application/JSON'). As soon as I do this I get an exception thrown by ASP.NET 'A required anti-forgery token was not supplied or was invalid.'. OK, but how do I go about adding the __RequestVerificationToken while preserving JSON payload?

Filter by Content Type in Orchard CMS

Deadly 提交于 2019-12-08 09:03:13
问题 I have created a content type "Club" to which i have added part name "Course". i want to get list of Club (content type) in my controller code. public ActionResult Index(PagerParameters pagerParameters, CourseSearchVM search) { //this is displaying only published content var courseQuery = _contentManager.Query<CoursePart>().List().ToList(); // Project the query into a list of customer shapes var coursesProjection = from course in courseQuery select Shape.course ( Id: course.Id, Name: course

Orchard Taxonomy Terms variations

醉酒当歌 提交于 2019-12-08 06:01:32
问题 What is the best way to make various types from Terms in the Taxonomy Module of Orchard CMS, so that the first level can contain only type1, the second level can contain only type2 and so on? So it would look like real taxonomy of Species. Example: Order1 Family1 Genera1 Species1 Family2 Genera2 Species2 Genera3 SPecies3 Order2 (and more) Where Order1, Order2 are of type Order with unique set of attributes; Family1, Family2 are of type Family with unique set of attributes and so on. I thought

Restrict access to the Admin side of Orchard CMS by IP

蹲街弑〆低调 提交于 2019-12-08 05:25:11
问题 I'm trying to deny access all IPs to the /Admin with a couple exceptions. The Orchard CMS 1.8.1 app is running on IIS 8.5. I'm experimenting with IP Restrictions rule, but it seems to me that is not the right tool, as I could only set access rights on folders not individual pages. (Managed to deny access to TheAdmin theme.) I've tried the below snippet with no luck: <location path="Admin"> <system.webServer> <security> <ipSecurity allowUnlisted="false"> </ipSecurity> </security> </system

Including Autofac.Module in custom module breaks Orchard

空扰寡人 提交于 2019-12-08 03:52:40
问题 See here & here for why I'm trying to do this. I have a custom module that I'm building (and which is it's own .csproj in the Orchard .sln, as normal) I have a (relatively complex) dependency that I wish to inject into Orchard. Currently if I build and run the code it's perfectly happy until it hits my dependency at which point it null-refs (as I'd expect it to). I can access the admin site and any pages that don't reference the dependency. I add a reference to Autofac to my project. -> All

Projector Orchard CMS and widget

别等时光非礼了梦想. 提交于 2019-12-08 03:51:11
问题 I) Imagine that I created a projector get a list of content types ( Course in my case) and display it. The Create new course should satisfy 3 conditions: I would like to add new elements on this list using jQuery AJAX calls, including data validation on client and server side, and reusing the code of the data annotation at the Models. Before make the AJAX call, a pop-up dialog using jQuery UI appears, just like represented in the picture bellow: but I would like to add just a button on the

Synchronise contents to Orchard CMS from another source - regularly

别等时光非礼了梦想. 提交于 2019-12-08 03:09:47
问题 I have a commerce system with products in it. The products are categorised and also have groups of attributes. I’d like to Synchronise/Update the products from the commerce system to a content type of product items defined in Orchard so that the data is pushed to the Orchard content items from the commerce system. My current thinking is to use Contrib.Taxonomies to represent the categories and the attributes of the products. The ProductCategory taxonomy will be used as a commerce menu on the

Generating Shapes with ShapeHelper in Orchard CMS - Type Not Found

梦想与她 提交于 2019-12-08 01:44:39
问题 I'm building a site using Orchard CMS and creating my own custom modules. I have been following a couple of tutorials and so-far-so-good. I don't understand how the .ShapeHelper() method works and it's giving me a little trouble. The following code, from my Driver file, works perfectly fine and generates my view on the front-end. protected override DriverResult Display(SubscribersFormPart part, string displayType, dynamic shapeHelper) { // setup model part.DateStamp = System.DateTime.Now;