orchardcms

Orchard CMS on Load Balanced web servers

浪子不回头ぞ 提交于 2019-12-04 05:27:11
I'm considering running Orchard CMS on load balanced servers. (Two web servers with hardware load balancers, and a SAN file share) I've been unable to find any info on this. I'm wondering if there will be update and cacheing issues - if pages are cached, will updates be propagated to the other server? I'm also wondering if there are likely to be any install pitfalls? Does anyone have any info or experience on this? Many thanks.... You will need to define a machine key: http://orchardproject.net/docs/Setting-up-a-machine-key.ashx Other than that, if all the servers are working off the same

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

五迷三道 提交于 2019-12-04 03:55:10
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 how to fix this error? Thanks. That means that an implementation of some interface could not be found.

Orchard CMS Performance

自闭症网瘾萝莉.ら 提交于 2019-12-04 02:41:52
I've started playing around with Orchard CMS for one of my websites and have noticed a fairly lengthy initial load time of my home page. I've not added much content to speak of, so what I am seeing is fairly close to the out of the box experience. I'm suspicious of this being somehow related to using Sql server compact on my shared hosting but don't yet know enough about what's under the hood to determine this. I'm looking for suggestioms of things to check that could be performance bottlenecks in Orchard's load times. My next plan is to point my site to a sql server other than compact to see

What is the Work<> class for in Orchard CMS?

情到浓时终转凉″ 提交于 2019-12-04 01:55:04
问题 Plain and simple, what is the use case of the Orchard.Environment.Work<> class defined in Orchard\Environment\WorkContextModule.cs ? It can be found in several places like private readonly Work<IContainerService> _containerService; public Shapes(Work<IContainerService> containerService) { _containerService = containerService; ... Is it for delayed resolution of IContainerService ? 回答1: The Work class is for lazy loading dependency injection. The dependency is not resolved when instantiating

Adding a Field to a ContentType in a Orchard DataMigration

試著忘記壹切 提交于 2019-12-04 01:31:57
I've created a ContentType in my data migration that welds several ContentParts together. On the Orchard Site Content Admin I can add a field to the ContentType (but not a ContentPart), and in the data migration it only seems possible to add a field to a ContentPart (and not a ContentType). I would like to add the field to the ContentType in the migration, so I can control it's placement using placement.info. Perhaps that's not important, and there is another way to achieve adding a field in the migration and then being able to control where it is placed using placement.info and how it looks

Orchard/MVC WCF Service Url with Area

随声附和 提交于 2019-12-03 22:28:52
问题 Bertrand created a blog post to specify how to use IoC in WCF Modules for Orchard. In 1.1, you can create a SVC file using the new Orchard host factory: <%@ ServiceHost Language="C#" Debug="true" Service="MyModule.IMyService, MyAssembly" Factory="Orchard.Wcf.OrchardServiceHostFactory, Orchard.Framework" %> Then register your service normally as an IDependency but with service and operation contract attributes: using System.ServiceModel; namespace MyModule { [ServiceContract] public interface

How to localize JQUERY UI Date Picker in Orchard?

安稳与你 提交于 2019-12-03 21:27:34
is there any way in orchard to localize date picker according to site culture? any help is where appreciated. If you mean JQuery date picker then you should ruther look into Orchard module called Orchard.JQuery there you should place your ui.datepicker-<language>.js file into Scripts folder and it should start working. 来源: https://stackoverflow.com/questions/11949117/how-to-localize-jquery-ui-date-picker-in-orchard

Orchard CMS: Do I have to add a new layer for each page when the specific content for each page is spread in different columns?

妖精的绣舞 提交于 2019-12-03 15:23:50
Lets say I want a different main image for each page, situated above the page title. Also, I need to place page specific images in the left bar, and page specific text in the right bar. In the right and left bars, I also want layer specific content. I can't see how I can achieve this without creating a layer for each and every page in the site, but then I end up with a glut of layers that only serve one page which seems too complex. What am I missing? If there is a way of doing this using Content parts, it would be great if you can point me at tutorials, blogs, videos to help get my head round

where to change the Database connection settings in Orchard MVC CMS

六眼飞鱼酱① 提交于 2019-12-03 14:45:07
问题 i set up a site in orchard cms.while choosing data storage settings i choose "used an existing SQL Server(or SQL Express) database" option instead of "used built-in data storage(SQL Server compact)".its worked fine for me but i am wondering where to change the data source that is the database server name.i didn't find the connection string settings in web.config file. any help would be greatly appreciated. thanks. 回答1: To change the database, you should edit the DataConnectionString entry in

Can I make Orchard show the entirety of a blog post in the blog list?

浪尽此生 提交于 2019-12-03 12:48:59
I just set up Orchard and noticed that the preview widget only shows the first couple sentences with the standard "more" link. Is there a way to override this functionality without creating a custom widget? I would like Orchard to show the entirety of my latest five posts. Sure, just put this Parts.Common.Body.Summary.cshtml in the views directory of your theme: @{ Orchard.ContentManagement.ContentItem contentItem = Model.ContentPart.ContentItem; var bodyHtml = new HtmlString(Model.Html.ToString()); } <p>@bodyHtml</p> I wanted to do something similar without overriding the Common.Body.Summary