orchardcms-1.7

Orchard cms 1.7.2 GenericADOException

廉价感情. 提交于 2020-02-05 09:09:37
问题 Running an orchard site, recently up graded to 1.7.2. seems to work ok for a while then after a few day I get this exception on any of the blog posts pages. [GenericADOException: could not execute query [ SELECT TOP (@p0) this_.Id as Id332_3_, this_.Number as Number332_3_, this_.Published as Published332_3_, this_.Latest as Latest332_3_, this_.Data as Data332_3_, this_.ContentItemRecord_id as ContentI6_332_3_, autoroutep1_.Id as Id401_0_, autoroutep1_.UseCustomPattern as UseCusto2_401_0_,

Orchard cms 1.7.2 GenericADOException

谁说我不能喝 提交于 2020-02-05 09:07:09
问题 Running an orchard site, recently up graded to 1.7.2. seems to work ok for a while then after a few day I get this exception on any of the blog posts pages. [GenericADOException: could not execute query [ SELECT TOP (@p0) this_.Id as Id332_3_, this_.Number as Number332_3_, this_.Published as Published332_3_, this_.Latest as Latest332_3_, this_.Data as Data332_3_, this_.ContentItemRecord_id as ContentI6_332_3_, autoroutep1_.Id as Id401_0_, autoroutep1_.UseCustomPattern as UseCusto2_401_0_,

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

Orchard Custom Forms and Workflows - syntax of scripts in a decision node

与世无争的帅哥 提交于 2020-01-03 02:31:04
问题 In Orchard 1.7.1.0, I have a Custom Contact form with a drop-down: Preferred location: North Office | South Office I need to be able to fire an email to the relevant office based on the selection from the contact form. Simples yes?? I created a decision node in the workflow, but I'm not sure on the rules syntax based on a token..? The token would be something like {Content.Fields.ContactUsForm.PreferredLocation} The help text is "You can use ContentItem, Services, WorkContext, and T(). Call

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

Orchard Migration Add_Index to an existing table to make it a unique constraint

大兔子大兔子 提交于 2019-12-24 00:25:05
问题 Looking at Q A migration to add unique constraint to a combination of columns In my migration file I already have a 'MobileDeviceRecord' table with an 'ActivationCode' which is created in code from a GUID class when a new record is created. I want to ensure the new 'ActivationCode' is unique to the existing 'ActivationCodes' in the table. Do I need to remove the 'ActivationCode' column and re-add it with a constraint or can I use an add_index...Also what is the proper way to use it?? public

Orchard 1.7 - Create custom Workflow Activity for Unpublished

旧时模样 提交于 2019-12-21 20:14:31
问题 I needed to tap into a list of activities in Orchard CMS; unpublished activity being one of the requirements. I have looked and found out that Orchard default Workflow activity list doesn't have a unpublished activity. I have built a module that add my own custom Workflow Activities. I have had no problem creating activities and making them work but I have no idea how to bind one of these with an event. Even if I copy the publish activity that is found in the default activity folder of

Display MediaLibraryPickerField when editting a part

你离开我真会死。 提交于 2019-12-12 15:09:57
问题 I'm missing something here and can't for the life of me figure out what. I've added a MediaLibraryPickerField to a part I created: ContentDefinitionManager.AlterPartDefinition(typeof (FloorPlanPart).Name, cfg => cfg .WithField("Photo", f => f .OfType("MediaLibraryPickerField") .WithDisplayName("Photo") .WithSetting("MediaLibraryPickerFieldSettings.Required", "true"))); I can verify that this field has been added correctly to my part. This part belongs to a custom type:

Need help implementing an Orchard CMS Shape Method

℡╲_俬逩灬. 提交于 2019-12-12 02:11:59
问题 I am just learning Orchard CMS and am having trouble implementing a shape method to return some arbitrary text without creating a whole set of model, driver, etc. I am trying to use the code at http://docs.orchardproject.net/Documentation/Accessing-and-rendering-shapes public class DateTimeShapes : IDependency { private readonly IClock _clock; public DateTimeShapes(IClock clock) { _clock = clock; T = NullLocalizer.Instance; } public Localizer T { get; set; } [Shape] public IHtmlString

Item Templates vs Part Templates in Orchard

北战南征 提交于 2019-12-12 00:28:25
问题 I'm learning Orchard and I did some Pluralsight course. It covered Part Templates, but now I'm reading this article: Anatomy of a theme and there's a section called: Item Templates . And I'm confused. I think I haven't came across this notion before. What is the difference? Let's have a sample that I have a content type Movie with content part Movie . I can override how it's rendered using Part Template . So where I would use Item Template in this case? 回答1: Wrote a blog post with a tiny bit