orchardcms

Virtual directory inside Orchard web application

為{幸葍}努か 提交于 2020-01-03 09:01:28
问题 I would like to have a /downloads folder inside an Orchard web app where I can direct clients to so they can download files ie. www.mydomain.com/downloads/test.txt In IIS I have created a virtual directory (not an Application) underneath the Orchard website that points to the downloads folder on the server. In the Orchard Global.ascx file, I've added the following, thinking that it was a routing problem: public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource

Recommend .net based CMS for an editable tree (taxonomy classification)

前提是你 提交于 2020-01-03 06:34:13
问题 That should be simple web site but with an editable tree. This tree will have 4-6 levels. This is taxonomy classification. Also leafs of the tree are put in categories adding the second classification so that there is filtering of these leafs by those categories. It seems that Orchard CMS suits to this. Create Module to create custom editing in Admin for those nodes to specify their position in the tree and put them in the categories, etc. What do you think? 回答1: I'm not a 100% sure of your

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

Sorting and filtering lists in Orchard

浪子不回头ぞ 提交于 2020-01-02 10:05:54
问题 I've followed the topic 'Creating lists' in the Orchard Project docs but I'm struggling to think how best to implement my preferred sort order and direction in the resulting rendering of Summary display of the content items. For example, if I create a Book Reviews list as in the example, and I then add a Published Date field following the topic 'Creating a custom field type' then how would I alter my theme or the views in the Module to display (and possibly also filter) the content items by

How to create layout elements in Orchard 1.9

萝らか妹 提交于 2020-01-02 08:51:10
问题 Can someone please guide me on how to create layout elements in Orchard 1.9. I couldn't find any resource online. 回答1: In general, creating a new layout element is similar to creating a new part. There is a driver and a few views involved in the process. To the point - you need to implement as follows: An element class. . Class that inherits from Element , which contains all the element data. A model, so to speak. A driver. Class that inherits from ElementDriver<TElement> , where TElement is

How to create layout elements in Orchard 1.9

送分小仙女□ 提交于 2020-01-02 08:51:04
问题 Can someone please guide me on how to create layout elements in Orchard 1.9. I couldn't find any resource online. 回答1: In general, creating a new layout element is similar to creating a new part. There is a driver and a few views involved in the process. To the point - you need to implement as follows: An element class. . Class that inherits from Element , which contains all the element data. A model, so to speak. A driver. Class that inherits from ElementDriver<TElement> , where TElement is

Orchard CMS Module development workflow

谁说胖子不能爱 提交于 2020-01-01 14:51:34
问题 How can I force Orchard to rerun the Migrations.Create method to re-create my module's data? All the tutorials I've seen use the Migrations.UpdateFrom methods to make Orchard recognize module data changes, but this means I'll have to create a new method every time I make a change during development. These methods make sense for actual version updates, but not for initial development. I've tried disabling and re-enabling the module, no dice. I've also tried uninstalling and reinstalling the

Adding a Field to a ContentType in a Orchard DataMigration

拈花ヽ惹草 提交于 2020-01-01 08:47:36
问题 I've created a ContentType in my data migration that welds several ContentParts together. On the Orchard Site Content Admin I can add a field to the ContentType (but not a ContentPart), and in the data migration it only seems possible to add a field to a ContentPart (and not a ContentType). I would like to add the field to the ContentType in the migration, so I can control it's placement using placement.info. Perhaps that's not important, and there is another way to achieve adding a field in

orchard cms routing question

我的未来我决定 提交于 2020-01-01 08:45:17
问题 I have created some custom content types which include the route part so my content managers can edit the slugs for the items. I am having no luck configuring a route that will enable a controller of my own to serve requests for these items. The route for paths to the ItemController in the core Routable module has a priority of 10. I have tried making a route that utilises an IRouteConstraint, similar to how the Blog module achieves what I want to do, with a lower priority but still no luck.

orchard cms routing question

爱⌒轻易说出口 提交于 2020-01-01 08:44:19
问题 I have created some custom content types which include the route part so my content managers can edit the slugs for the items. I am having no luck configuring a route that will enable a controller of my own to serve requests for these items. The route for paths to the ItemController in the core Routable module has a priority of 10. I have tried making a route that utilises an IRouteConstraint, similar to how the Blog module achieves what I want to do, with a lower priority but still no luck.