orchardcms

Orchard - Search & Indexing issue

☆樱花仙子☆ 提交于 2021-01-27 05:36:28
问题 I have a project completed with Orchard CMS. The all functionalities are implemented through modules. Search module was also working till a few days ago, but suddenly it is stopped to working, "without any reason". The issue is that I can not rebuild/update indexes. When I run indexing, it will only index default list of fields (id, title, body, format, type, author, created, published, modified, culture) but my custom fields are not indexed. I tried everything but without any success. I

NullReference Exception when viewing Content page in Orchard CMS

橙三吉。 提交于 2020-04-30 04:52:20
问题 In OrchardCMS v1.8.1.0, I receive the following error message when clicking on the Content link (/Admin/Contents/List) file name Modules\Orchard.MediaLibrary\Views\Parts\Document.SummaryAdmin.cshtml : Object reference not set to an instance of an object. Source Error: Line 3: @{ Line 4: DocumentPart documentPart = Model.ContentPart; //The following line throws the exception Line 5: var mediaPart = ((ContentItem)Model.ContentItem).As<MediaPart>(); Line 6: } Line 7: Stack trace:

Use OrchardCMS, Umbraco or DotNetNuke as a component in ASP.NET application

≡放荡痞女 提交于 2020-02-02 12:59:13
问题 OrchardCMS , Umbraco and DotNetNuke are CMSes in .Net galaxy. They work as stand alone applications well. Suppose I have a requirement that need CMS features in an another ASP.NET MVC application. I do not like to implement CMS again in the application. Rather I like to use current CMSes as a component of application. Is it possible at all to use for example OrhcardCMS as a component of my MVC application? It is ideal to have relations between CMS and application itself, for example I can

Is it possible to use razor layouts with Orchard CMS and bypass the theming

拈花ヽ惹草 提交于 2020-01-29 15:31:30
问题 A little bit of context We have a recent MVC4 web application used by a lot people that we would like to port to Orchard CMS. Even though this is an "admin" type of application, we don't want it to be part of the admin section of Orchard. This application is currently live and we would like the move to Orchard to be as invisible as possible to the end-user. Where we are now We followed this answer as how to Integrate existing ASP.NET MVC application with Orchard CMS but we use layouts (Razor

Access HttpConfiguration in Orchard CMS

无人久伴 提交于 2020-01-24 20:17:05
问题 I would like to enable CORS (Cross-Origin Request) in Orchard 1.8.1. I followed this article for the purpose. However, I don't know how to access HttpConfiguration for my WebAPI Controller. I tried to use ControllerContext.Configuration, but it seems to be always NULL. What is the proper method to access HttpConfiguration in Orchard and to call EnableCors()? Thank you in advance. 回答1: As I figured Orchard uses GlobalConfiguration, I created a shell hook impelmenting the IOrchardShellEvents in

How to include custom CSS or Javascript on a Content Item in Orchard

感情迁移 提交于 2020-01-24 15:14:43
问题 Sometimes I want to add some custom CSS or Javascript to a page but the HTML editor doesn't handle this gracefully, even when using text dialog. I could use an alternate view but then I have to upload the view file to my host every edit. Any ideas? 回答1: Ok, I found a module (Vandelay.Classy) that does exactly this. http://orchardproject.net/gallery/List/Modules/Orchard.Module.Vandelay.Classy 来源: https://stackoverflow.com/questions/6807939/how-to-include-custom-css-or-javascript-on-a-content

How to delete version records of a content item in Orchard?

送分小仙女□ 提交于 2020-01-24 10:19:12
问题 I have a Orchard CMS running that is tied to a user synchronization. This sync updates each user overnight and the code begins with ... = mContentManager.Get<Orchard.Users.Models.UserPart>(lOrchardUser.ContentItem.Id, Orchard.ContentManagement.VersionOptions.DraftRequired); As you can see VersionOptions.DraftRequired is passed to the Get() method with creates a new draft each time the user is synchronized. It's not intended to create a new draft here so i changed it to VersionOptions

Orchard Custom Module - Model being picked up by NHibernate - Requiring virtual properties

时光怂恿深爱的人放手 提交于 2020-01-23 03:05:19
问题 I'm working on building a custom module in Orchard CMS, and I have the following Controller Action: public ActionResult Inventory() { var models = _repository.Get<MyModel>(); return View(new MyViewModel() { MyModels = models.ToList() }); } Now, when Orchard builds this, an exception occurs, because NHibernate has picked up MyModel because its being looked at as a PartRecord, which I do not want it to be. The exception is method get_Id should be 'public/protected virtual' or 'protected

Orchard Custom Module - Model being picked up by NHibernate - Requiring virtual properties

[亡魂溺海] 提交于 2020-01-23 03:05:01
问题 I'm working on building a custom module in Orchard CMS, and I have the following Controller Action: public ActionResult Inventory() { var models = _repository.Get<MyModel>(); return View(new MyViewModel() { MyModels = models.ToList() }); } Now, when Orchard builds this, an exception occurs, because NHibernate has picked up MyModel because its being looked at as a PartRecord, which I do not want it to be. The exception is method get_Id should be 'public/protected virtual' or 'protected

Orchard Custom Module - Model being picked up by NHibernate - Requiring virtual properties

旧巷老猫 提交于 2020-01-23 03:04:26
问题 I'm working on building a custom module in Orchard CMS, and I have the following Controller Action: public ActionResult Inventory() { var models = _repository.Get<MyModel>(); return View(new MyViewModel() { MyModels = models.ToList() }); } Now, when Orchard builds this, an exception occurs, because NHibernate has picked up MyModel because its being looked at as a PartRecord, which I do not want it to be. The exception is method get_Id should be 'public/protected virtual' or 'protected