orchardcms

Can I use my Ninject .NET project within Orchard CMS?

為{幸葍}努か 提交于 2020-01-01 03:22:05
问题 I am creating a website using Orchard CMS and I have an external .NET project written with Ninject for dependency injection which I would like to use together with a module within Orchard CMS. I know that Orchard uses Autofac for dependency injection and this is causing me problems since I never worked with DI before. I have created an Autofac module, UserModule , which registers the a source, UserRegistrationSource , like this: UserModule.cs public class UserModule : Module { protected

Orchard Create Projection or Search Based on Filtered Dropdown Selections

爱⌒轻易说出口 提交于 2020-01-01 02:45:08
问题 I have, what I think is, a simple feature that I am trying to add to my Orchard (1.6) site, but I can't find any tutorials or instructions on how to do it. I have a custom type called "Office" and each office has a custom field called "State" indicating which state the office is in. I actually designed my Offices as a custom part in code with specific properties such as State on it, but I "think" it's the same as if I added the State through the Admin interface as a field on the Office

Single page design using Orchard CMS

依然范特西╮ 提交于 2019-12-31 10:53:28
问题 I have a client who want's a single page design for his site where the content for each "page" is shown/hidden using javascript as the user navigates the site. I'm not sure on the best way to approach this using Orchard. One option would be to have the content all on a single page content item but then you lose the ability to use the navigation features of Orchard and can't let the client think about administration in terms of pages. Does anyone have ideas or experiences on how best to set

Using FindView in Orchard

 ̄綄美尐妖づ 提交于 2019-12-31 01:15:08
问题 I'm trying to use: var viewEngineResult = ViewEngines.Engines.FindView(ControllerContext, myViewName, null); as part of a process to render the contents of a view to send nice formatted emails. I'm using it inside an Orchard Controller. I have used similar code outside of Orchard in an MVC project and it works fine. However in Orchard running this code fails to find the view I'm looking for and returns a view engine result that has searched 0 locations. viewEngineResult has the following

WebForms page inside of Orchard CMS Application

こ雲淡風輕ζ 提交于 2019-12-30 08:49:07
问题 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? 回答1: Here's a web.config that has worked for me: <?xml

Styles and Script in Orchard

只愿长相守 提交于 2019-12-25 07:44:03
问题 I had created a new module to my orchard application. I'm unable to add styles and script to my views through references. It is showing 404 error to the path even though the path is correct. After reviewing some articles I understood we need to provide the path with Style.Require("stylename") & Script as Script.Require("Scriptname"). While doing it in my views I'm facing the error as "Style" & "Script" not found. 回答1: You must check the .net version for this module to be compatible with

Extracting a Module from Orchard

非 Y 不嫁゛ 提交于 2019-12-25 03:33:02
问题 I am having a little problem in my workplace where we have a IIS 6 server where Orchard (1.7) will not run. We are planning an upgrade but that's going to take some time. Since we are using this site on IIS6 only to run one particular custom module we wrote for Orchard (basically a MVC module with its own Controllers/Actions etc.) I was thinking that a temporary solution could be to rip that module out of Orchard and run it independently. Of course this extraction needs to take into account

Site down: error log pattern of login failure x20, then invalid object name x20, then again login failure x20

孤街醉人 提交于 2019-12-25 03:26:34
问题 Our Orchard CMS with multi-tenancy just went down. We have since brought it back online by restoring a version of the database, and then recycling the application pool. Communicating with the restored database continued to fail until we recycled the app pool. The post-mortem analysis of the error log from yesterday had zero errors, and the error log from today has about forty errors with the following pattern: About 20 SqlException errors reporting "invalid login" for two of the tenant

Orchard CMS best options for list

六月ゝ 毕业季﹏ 提交于 2019-12-25 02:29:34
问题 I am new to orchard and am trying to find the best way to create a list of houses (name, address, pictures, prices and a few others). The houses are to be in two sections/ categories (Buy and Rent). These two options will appear on the menu. Then on clicking buy you get all houses flagged with that option and likewise for rent. I would also then like these displayed as images and brief description then on clicking more take you to a page with lots more details as mentioned above on the house.

Orchard alternates for different zones

自作多情 提交于 2019-12-24 23:24:48
问题 I have a Projection Widget that displays a content type in the AsideSecond zone. I used Placement.info to suppress most of the metadata. On the main page for that content type I want all the metadata displayed in the Content zone. I cannot seem to work out how to specify an alternate template based on where the Shape is being rendered. They both have a display type of Summary. Everything I attempt applies the suppression/alternate template to both. As these are threads which will be added as