orchardcms

How to deploy an Orchard CMS site, including all settings and content from development environment?

非 Y 不嫁゛ 提交于 2019-12-20 08:35:23
问题 I've been trying to build and deploy a website running on Orchard CMS. I've previously downloaded Orchard, set up a development environment, made a few modifications to the source, added and modified a theme, added some content and so forth. I've been using the SQL CE as database. Now I want to build and deploy the complete website. I've built a deployment package by running the build script, as described here. It's easy to simply ftp the built package to the hosting server. However, when

How can I display images with projection layouts in Orchard 1.7?

冷暖自知 提交于 2019-12-20 03:52:50
问题 I use query layouts with properties and had been using .Url.Absolute in versions previous to 1.7 to get the path to an image. Is there way to produce the image url and other properties from the new media library in a layout? Thanks! 回答1: Go to the Bindings tab under Queries. Under Orchard.MediaLibrary.Models.MediaPartRecord you'll see MediaPath and FileName, that together should get you where you need to be: those properties will then be available for you to add from the layout editor.

Customizing the Orchard navigation menu

梦想与她 提交于 2019-12-19 11:36:14
问题 Excuse me for asking such a general question. I'm creating a website with Orchard CMS. The website's design and interactivity are critical requirements. I have a navigation menu which has a fixed size(900 px wide), but should be able to adjust as many menu items as possible (I do this manually by modifying the css). I've used a bit of jQuery to create some animations on mouse hovers etc. for the menu. Problem is that the css and jQuery parameters are hard coded. So if a user were to change to

How to handle cross-domain web service calls from JS in Orchard CMS

我们两清 提交于 2019-12-19 07:27:10
问题 I am trying to call a web service cross domain from within an HTML widget. This does not seem to work. It worked great under the same domain. I am trying to create a log in page within Orchard that could be used to log in to my software on another domain. The web service is validating the user credentials and returning a boolean which then would generate the users authentication. I read that I could use an HTTP Handler or another web service (on the Orchard side) to call the web service on

How to run scheduled tasks in Orchard?

 ̄綄美尐妖づ 提交于 2019-12-18 17:23:05
问题 I have to run a automated job every 5 hours. I found this post on how to create scheduled tasks, using IScheduledTaskHandler and IScheduledTaskManager. Scheduled tasks using Orchard CMS I copied the same code, I added my service call inside the Process function. It compiles fine. But I am not sure if I have to 'start' this scheduled task, like a windows service start. Does it get picked up automatically after I build the solution? When does the clock starts ticking if I want to run this job

Orchard Performance on Azure

假装没事ソ 提交于 2019-12-18 13:24:48
问题 Using http://docs.orchardproject.net/Documentation/Deploying-Orchard-to-Windows-Azure I've successfully deployed Orchard into Azure. After every 20mins or so without activity (app pool recycle?) it takes minutes to render a page. I'm running on an Extra Small instance in Azure. Webinstance, Storage and SQL Database are all in the same datacentre - SE Asia. There is a module called keepalive, which does a regular ping. or http://blog.smarx.com/posts/controlling-application-pool-idle-timeouts

How to use javascript(js file) in Orchard CMS

北城以北 提交于 2019-12-18 11:33:22
问题 Can any one tell me please how to use js file in Orchard CMS? I added it to Layout.cshtml page as Script.include("jquery.js") . 回答1: You can do it twofold. First approach is just like mdm described : Create your own implementation of IResourceManifestProvider interface (take a look at Orchard source - it's been implemented in many modules), implement BuildManifests(ResourceManifestBuilder builder) method and create a named resource for a given .js file Use @{ Script.Require("[your resource

How to locate resources in Orchard

瘦欲@ 提交于 2019-12-18 06:06:40
问题 I am writing an Orchard theme, and I'd like to be able to locate some of the resources packaged with the theme (images/swfs etc). What is the best way of doing this? I've had a look at ResourceManifest files, using builder.Add.DefineResource but I can't seem to find it's counterpart in the view. Or do I just put the full path in? Any hints? Cheers Carl 回答1: In stylesheets, relative paths (from the stylesheet path) should be used. In views, you should use Url.Content. 回答2: If you need to

What are the definitions of each of the Lifecycle Events in Orchard's CMS?

怎甘沉沦 提交于 2019-12-18 03:47:06
问题 The documentation for content handlers in Orchard mentions Lifecycle Events (http://docs.orchardproject.net/Documentation/Understanding-content-handlers). Most events are self explanatory, but I was wondering if anybody can tell me the differences between OnActivated , OnInitializing , and OnLoading ? 回答1: In firing order: OnActivated - content item object hierarchy has been created, but not yet fetched from db Used for preparing content part for further usage. Eg. setting getters and setters

Is Orchard or Umbraco MVC?

有些话、适合烂在心里 提交于 2019-12-17 19:33:49
问题 I'm much happier with the quality of output I can get with MVC over webforms: hand crafted HTML that isn't full of additional machine generated gubbins (polite term). I realize of course that MVC is about a lot more than this, but concentrating on just that "view" part... I'm looking at Orchard or Umbraco for a project. I see both support Razor syntax (Umbraco just about) - but with my strong leaning to MVC Views rather than webforms, does that rule out Umbraco? All the Umbraco reading I've