orchardcms

orchard cms: how to add media picker field to a custom part

一个人想着一个人 提交于 2019-12-04 16:16:42
My question is simmalar to questions/10369967/orchard-cms-how-to-add-media-picker-field-to-anew-module I've created a new content part, that has a select list, a text box and ... I want to include a media picker filed. I have added this to the content part with Bertrand Le Roy's suggestion of: ContentDefinitionManager.AlterPartDefinition("Product", builder => builder.WithField("ProductImage", fieldBuilder => fieldBuilder .OfType("MediaPickerField") .WithDisplayName("Product Image"))); However I've no idea of how to show this in my custom editor View I'm sure there should be something easy like

Join Non ContentPart Table to ContentPart Table Using Orchard HQL API

独自空忆成欢 提交于 2019-12-04 14:58:34
I am trying to perform a simple join between two different tables using the Orchard HQL API. The problem is that one of the tables is not a ContentPartTable. Is this possible?? Here is what it would look like in regular SQL: Select * From ItemPartRecord Join ItemRecord On ItemRecord.ItemId = ItemPartRecord.ItemId Where ItemRecord.Price Between 1000 and 10000 How exactly could I go about doing this? If anyone is wondering how to do this: //Join the non content part table var defaultHqlQuery = query as DefaultHqlQuery; var fiJoins = typeof(DefaultHqlQuery).GetField("_joins", BindingFlags

How to fetch table data from database in Orchard CMS?

╄→гoц情女王★ 提交于 2019-12-04 13:58:29
问题 How to fetch table data from database in Orchard CMS ? I am a beginner in Orchard CMS, I don't know to fetch and save any data in Orchard CMS, because it is not like a regular database accessing model like ado.net or linq to sql or entity framwork. 回答1: Okay, so I would recommend starting off by reading the docs and following some tutorials (eg. http://www.ideliverable.com/blog/writing-an-orchard-webshop-module-from-scratch-part-1). I at least found Orchard a bit tough to jump into and had to

Orchard 1.7 - Create custom Workflow Activity for Unpublished

青春壹個敷衍的年華 提交于 2019-12-04 13:18:43
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 Workflow module, the copied activity doesn't get bind to any event. How can I make it so that my activity

Orchard CMS on Mono

二次信任 提交于 2019-12-04 10:58:29
This question might be slightly subjective, but I am unsure where else it would be better suited. I have used Orchard on a number of projects where the server was Windows Server based - integrating with AD, SQL etc to provide a MVC based portal - like stealing candy from a toddler! I have been exploring MonoTouch recently, and installed Orchard on OSX under ModMono as per http://docs.orchardproject.net/Documentation/Running-Orchard-on-Mono . It all seems to run fine, and fast, but I am unsure whether to back this on a commercial venture. I have always used MySQL or MSSQL as the DB, whereas my

How to include a css stylesheet in Orchard module?

守給你的承諾、 提交于 2019-12-04 08:24:33
I am working on a module for Orchard, and I just want to know how to include a css file. I have done the following with no result: Added a folder "Styles" to the root of my module and included a stylesheet and a Web.config file like in this question. And I have seen this but that's not what I am looking for. EDIT: Ok, solution: When I started working on Orchard I created a new module by just creating a new project in Orchard.Web/Modules folder, but as I read here , my Views/Web.config file has to include some orchard base things what mine didn't because I did not create the module using

Understanding Orchard Joins and Data Relations

半腔热情 提交于 2019-12-04 08:04:32
In Orchard, how is a module developer able to learn how "joins" work, particularly when joining to core parts and records? One of the better helps I've seen was in Orchard documentation , but none of those examples show how to form relations with existing or core parts. As an example of something I'm looking for, here is a snippet of module service code taken from a working example: _contentManager .Query<TaxonomyPart>() .Join<RoutePartRecord>() .Where(r => r.Title == name) .List() In this case, a custom TaxonomyPart is joining with a core RoutePartRecord . I've investigated the code, and I

Orchard CMS - Remove Title and Metadata(published date) in a post

偶尔善良 提交于 2019-12-04 08:03:29
问题 How do I remove the Title and Metadata(published data) in a post? Can this be done in Placement.info? I tried creating a custom content but doesn't look like a best solution. I just done it with CSS but I know this could be done in another way. 回答1: You can edit the Placement.info file in your current theme's root folder to not display the title and publish date: <Placement> <Match DisplayType="Detail"> <Place Parts_Title="-"/> <Place Parts_Common_Metadata="-"/> </Match> <Match DisplayType=

A full guide to Orchard CMS [closed]

时光怂恿深爱的人放手 提交于 2019-12-04 07:25:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am currently developing a very simple website in Orchard, which however required me to extend it both with themes, and with content types/widgets. Now this is as far as I went - Content Types and Widgets, because they were the only ones to be explained in detail in the official documentation. I've looked A LOT

Can I search/index a custom datasource in Orchard via Lucene?

回眸只為那壹抹淺笑 提交于 2019-12-04 07:23:51
I am currently working on a site to allow users to search through a custom product catalog. I have been looking around and would love to leverage Orchard CMS to help me develop this site. I have currently gone through Ron Petersons youtube series on custom Orchard Modules and the Skywalker blog series . I feel like my goal is possible, but I'm looking for some validation on whether my strategy will work within the Orchard framework. This is my current situation: I have an default Orchard configuration pointing to a SQL DB (named Product-Orchard) I have a custom DAL that points to another SQL