orchardcms

Orchard connected parts

与世无争的帅哥 提交于 2020-01-06 13:52:33
问题 I have a complex scenario that I'm trying to model using Orchard CMS parts. Now here it is the simplified version to make clear my question. I have a part name, as example, PersonPart that has just one property: Name. I have another part that contains the person role, name it PersonRolePart and has just one property, Role In Orchard I have created all the appropriate plumbing (Handlers, Drivers, Views...) In migrations I created a new content type named Person that contains the two parts.

Instaling Orchard at the root stops other ASP.net applications at different folders

北城余情 提交于 2020-01-06 13:08:26
问题 After installing Orchard by using Webmatrix at the root my other applications stop. What could be the reason and how I can make other applications in a working condition. Thanks to all. Edit: Showing Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 回答1: Are you sure they actually are IIS web applications? I have a site where Orchard is at the root and

Orchard CMS Database Part vs PartRecord

折月煮酒 提交于 2020-01-06 09:01:12
问题 In Orchard database, there is tables name ending with 'Record' and other with 'PartRecord'. What is the logic behind that? 回答1: The tables for a part record should end in "PartRecord". If a table ends in "Record" without "Part" in front, it shouldn't map to a part record. For example, "ContentItemRecord" is a record, but not a part record. ContentItem is not a part. 回答2: Content part records are record classes that store content part data in the database. While its not mandatory to have a

Orchard CMS continues executing request after permanent redirect from IActionFilter

隐身守侯 提交于 2020-01-05 10:26:10
问题 We have a website that uses Orchard CMS and we've written a "RedirectFilter" to do permanent redirects on legacy URLs (aliases that don't match the AutoroutePart pattern for the relevant Content Item). The filter implements IActionFilter and inherits FilterProvider . It works fine and when it does a redirect it calls the following method in OnActionExecuting : filterContext.HttpContext.Response.RedirectPermanent(targetPath, true); According to the documentation the second parameter suggests

reset password with orchard not updating

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-05 04:52:08
问题 Using Orchard 1.6. In the settings section in the Dashboard I have enabled 'Display a link to enable users to reset their password' After updating this feature on the server the user can now request a lost password email be sent to them which allows them to change their password. This all works fine however the new password does not take affect. and the old password still works? why is this? thanks for any replies 回答1: I just had this issue. I am using Orchard 1.7. The problems seem to come

Want to save selected (i.e., more than 1) enums as string with NHibernate

强颜欢笑 提交于 2020-01-04 05:17:46
问题 I cannot for the life of me get this to work with my existing code, but I am trying to save my enum selections as strings in NHibernate. Basically, I have a UI check box and if the user selects multiple check boxes I want to store those selections. Now, I can get NHibernate to store ONE selection (e.g., from a drop down or radio button list, where the user is limited to one choice only). This is the jist of what I have for an enum: public enum IncomeType { [Display(Name = "Full-Time

Want to save selected (i.e., more than 1) enums as string with NHibernate

笑着哭i 提交于 2020-01-04 05:17:29
问题 I cannot for the life of me get this to work with my existing code, but I am trying to save my enum selections as strings in NHibernate. Basically, I have a UI check box and if the user selects multiple check boxes I want to store those selections. Now, I can get NHibernate to store ONE selection (e.g., from a drop down or radio button list, where the user is limited to one choice only). This is the jist of what I have for an enum: public enum IncomeType { [Display(Name = "Full-Time

Orchard CMS- Configure Base URL

扶醉桌前 提交于 2020-01-04 02:47:08
问题 I installed the latest version of Orchard on my dev machine using a base url of localhost/frankgiotto. Then I moved the site to www.frankgiotto.com and updated my Base URL in the settings. Site works perfectly. I love everything about it but the one thing is that all the links on every page are mapping to www.frankgiotto.com/frankgiotto/etc and I want simply www.frankgiotto.com/etc This is driving me insane at the moment.. help anyone!? p.s.. Yes, I made absolutely sure that Base Url is set

How to control the rendering of a menu in Orchard

 ̄綄美尐妖づ 提交于 2020-01-03 17:06:09
问题 I have the following problem: I'm making a site in Orchard and have to apply a design made by some design company. They delivered html and CSS (+ LESS) and I have to make it into a theme. I get it done for the most part except the menu's. I want to apply a class to the nav tag in the following code, but I can't make any alternates for that end up rendering it. <article class="widget-navigation widget-menu-widget widget" shape-id="18"> <nav shape-id="19"> <ul class="menu menu-main-menu" shape

Custom part properties missing in export Orchard 1.6

帅比萌擦擦* 提交于 2020-01-03 10:46:09
问题 I have a problem with the import export module in Orchard 1.6: I want to export a custom type with a part that has a property in it. The export XML contains data from TitlePart, CommonPart, BodyPart and AutoroutePart, however the data from my own part is not there. Is there anything I should do like implementing an interface or overriding something on my part so that it is contained within the export XML? What are (if any) the extension points of the export module? I have the source of the