orchardcms-1.7

How to get the Query preview list in code | Orchard 1.7

↘锁芯ラ 提交于 2019-12-11 09:40:02
问题 There is a Custom Content Type "SideBarLinks" in CMS. I created a query to get the list of items of this type: "SideBarLinks" and specified sort and filter criteria as well. This works fine when Previewing the query results in CMS. Is there a way i can get the same list in code, say in the Action method of any Controller ? Which Class/Services of Orchard is there to query ? And how to perform all those filtering, sorting of the Query results in a Controller method ? So far I used to query

How to use lucene query syntax on Orchard CMS

浪尽此生 提交于 2019-12-11 04:38:49
问题 I would like to use the full Lucene query syntax on an Orchard CMS based Website. Currently, after enabling the indexing and search on Orchard, I can search on the website according to the fields I selected on the Orchard search administration page, but I cannot perform one search on a particular field only (without changing the behavior on the entire search) I cannot use fuzzy search... From the logs, I can see that Orchard take care of that part (providing Lucene a good query syntax), but I

Filter by Content Type in Orchard CMS

Deadly 提交于 2019-12-08 09:03:13
问题 I have created a content type "Club" to which i have added part name "Course". i want to get list of Club (content type) in my controller code. public ActionResult Index(PagerParameters pagerParameters, CourseSearchVM search) { //this is displaying only published content var courseQuery = _contentManager.Query<CoursePart>().List().ToList(); // Project the query into a list of customer shapes var coursesProjection = from course in courseQuery select Shape.course ( Id: course.Id, Name: course

Orchard 1.7 - contents of Media folders not listed in media library

邮差的信 提交于 2019-12-06 14:02:19
问题 I've got a problem listing the images from the Media directory for my Orchard site. When trying to add an image using the new media picker I see the list of folders, but when I select one the contents are not listed (see image below). If I 'import' an image it does appear, but I surely don't need to import every file I'm ever going to use each time, do I? I must be the only person having this problem because I can't find any reference to it any where else on the web, so thanks in advance. PS.

Orchard 1.7 - contents of Media folders not listed in media library

断了今生、忘了曾经 提交于 2019-12-04 19:19:26
I've got a problem listing the images from the Media directory for my Orchard site. When trying to add an image using the new media picker I see the list of folders, but when I select one the contents are not listed (see image below). If I 'import' an image it does appear, but I surely don't need to import every file I'm ever going to use each time, do I? I must be the only person having this problem because I can't find any reference to it any where else on the web, so thanks in advance. PS. Sorry if my question isn't perfectly formed - it's my first time posting.... Enable the Update feature

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