orchardcms

Orchard CMS Performance

孤人 提交于 2019-12-05 20:20:00
问题 I've started playing around with Orchard CMS for one of my websites and have noticed a fairly lengthy initial load time of my home page. I've not added much content to speak of, so what I am seeing is fairly close to the out of the box experience. I'm suspicious of this being somehow related to using Sql server compact on my shared hosting but don't yet know enough about what's under the hood to determine this. I'm looking for suggestioms of things to check that could be performance

orchard cms rendering shape as email template

半世苍凉 提交于 2019-12-05 15:41:18
I am trying to render shapes as email templates. I would like to be able to do this from a background task as well as from the current request. Does anyone have any tips for me? I think the Orchard.DisplayManagement.IDisplayHelperFactory is the key, but then I need to manufacture the ViewContext and IViewDataContainer, which I could possibly get from the Orchard.Mvc.ViewEngines.Razor.WebViewPage perhaps? Anyone done anything similar? I am looking at https://github.com/andrewdavey/postal/blob/master/src/Postal/EmailViewRenderer.cs for some inspiration, just wondering if anyone can put me on the

Render image from a theme inside Orchard

我们两清 提交于 2019-12-05 13:16:06
问题 I've just picked up Orchard for building my blog. As part of my endeavour to create this new weblog I'm creating a custom theme. This custom theme features both CSS and images. My question My question basically comes down to this: How do I render an image that is part of the theme? What I have tried so far I have tried to use the following: <img src="@Html.ThemePath("/Content/Header.jpg")" alt="Logo"/> But that doesn't work to great. It returns the following HTML markup: <img src="~/Themes

Added menu item to the main menu through INavigationProvider but it won't show?

家住魔仙堡 提交于 2019-12-05 13:10:47
Using Orchard cms 1.5.1 I have created a module which contains controller that fetches list from a web service. I want to add a menu item in main menu when this module is enabled. For that i have created MainMenu as follows: public class MainMenu:INavigationProvider { public Localizer T { get; set; } public String MenuName { get { return "main"; } } public void GetNavigation(NavigationBuilder builder) { builder.Add(menu => menu.Add(T("Fetched List"), "4", item => item.Action("Index", "FetchedList"))); } } When my module is enabled, navigation won't show that menu item. Am i doing something

Is Orchard Project (orchardcms) mature enough for a medium-size project for company offering financial services?

孤人 提交于 2019-12-05 12:45:15
At the time of writing Orchard project (http://www.orchardproject.net/) is in version 1.1. I am considering that for a financial services' web site. Stability, security is of high priority here. Mostly that would be used to serve standard 'about-us' info plus various registration forms, sales' campaigns (landing pages/tracking user). It is important to be multi-culture friendly. I'm using Orchard in two medium-sized commercial projects and it works very well. It is perfectly stable. What do you mean by "security"? From the server perspective it's an ordinary ASP.NET application, so all

Orchard: Custom Registration fields

佐手、 提交于 2019-12-05 10:58:24
For my Orchard project, I need some additional information from the user at registration time. (Say, First Name, Last Name, Pants Color). This information must be entered while registering and can not be deferred until later (as per client's orders). I tried using the Profile and Extended Registration plugins to ask for those, but as far as I see, this only gives me optional fields to display in the registration form. Is there a way to present fields that are mandatory? I also had a quick foray into overwriting the AccountController's Register method, as per this discussion , but I couldn't

How to use MySQL database with Orchard CMS 1.3.10?

落爺英雄遲暮 提交于 2019-12-05 08:19:54
I am trying to change the Orchard.Setup module so i can install Orchard CMS 1.3.10 with MySQL as datase. I come so long that i getting MySQL in the GUI for setup and when i press setup button i getting this error message from orchard: The value 'MySql' is not valid for DatabaseOptions. But i can not find how i adding MySql as DatabaseOptions, do anyone else get it to work with MySQL? The old module for MySQL is not compatible wtih the latest version of Orchard CMS thats why it ring to make it by my own, if i get it to work i going to release it open source for others to use. The error you're

Orchard CMS : Javascript file returns 404 not found even though it exists

不想你离开。 提交于 2019-12-05 08:06:13
I have the following in my Razor view for an editor template in my Orchard module: Script.Include("assets.js").AtFoot(); When the page is rendered I can see this line at the bottom: <script src="/Modules/MyModuleName/scripts/assets.js" type="text/javascript"></script> Beautiful! Only problem is, when I visit that path I get a 404 error. The script doesn't exist. ...but it does! It's saved as Orchard.Web\Modules\MyModuleName\Scripts\assets.js The rest of my module's functionality works fine - I can enable and use it, it just won't find the script file. Am I missing something obvious here?! By

How to make Autofac perform property injection in Orchard CMS

我是研究僧i 提交于 2019-12-05 06:50:42
Is it possible to do property injection with the OrchardCMS? I know that Orchard uses Autofac and that Autofac does do property injection, but I need to know how to do property injection for the IOrchardServices interface. Our team is looking at Orchard but our code base is all in ASP.NET 4.0 WebForms and so we will continue to serve aspx pages and slowly migrate those said pages into Orchard as time permits. With that, we'll need a way to get access to the OrchardServices object. I'm thinking that this is something I'd have to come up on my own. Does any one have any good examples of

How to localize JQUERY UI Date Picker in Orchard?

白昼怎懂夜的黑 提交于 2019-12-05 06:17:48
问题 is there any way in orchard to localize date picker according to site culture? any help is where appreciated. 回答1: If you mean JQuery date picker then you should ruther look into Orchard module called Orchard.JQuery there you should place your ui.datepicker-<language>.js file into Scripts folder and it should start working. 来源: https://stackoverflow.com/questions/11949117/how-to-localize-jquery-ui-date-picker-in-orchard