orchardcms

Custom View For RecentBlogPosts in Orchard

和自甴很熟 提交于 2019-12-08 01:39:23
问题 I've been searching and trying for 2 days to change the view for the RecentBlogPosts content type that appears on my homepage. I want to display the title and a phrase from the posts. I have managed to find a view that shows the title for each post, but I haven't managed to figure out what the other parts in the Model are named or how to extract the text. Help will be GREATLY appreciated ! @using Orchard.ContentManagement; @using Orchard.Core.Routable.Models; @using Contrib.Hyperlink.Fields;

Have two field with the same type in one page with arbitrary place.

时间秒杀一切 提交于 2019-12-08 01:38:41
问题 I created the CategoryPart and I added two text field to it. I want to add some custom data in the page between two text fields data. The problem is when I want to specify the place of the text field in Placement.info I just have one Shap "Fields_Common_Text" for all the text fields in the page so I can't specify different places for different fields with the same type. Is there any way to do it in Orchard? Thanks in advance. my Placement.info is like this: <Placement> <Match DisplayType =

How can I insert the Save Button using Orchard.Forms?

故事扮演 提交于 2019-12-08 01:06:20
问题 Follow-up to my initial question: If I create a form in code thusly: public void Describe(DescribeContext context) { Func<IShapeFactory, object> form = shape => { var f = Shape.Form( Id: "MyLayoutBasicInformation", _BasicInformation: Shape.Fieldset( Title: T("Basic Information"), _FirstName: Shape.TextBox( Id: "FirstName", Name: "First Name", Title: T("First Name"), Description: T("The name for this field") ) ) ); return f; }; context.Form("MyLayoutBasicInformation", form); } And inject it

Use RavenDB as the database for an Orchard CMS module

北慕城南 提交于 2019-12-07 22:53:24
问题 I'm just getting underway with Orchard CMS. How difficult would it be to create an Orchard module that uses RavenDB as its database? Is a hard dependency on SQL and NHibernate baked deeply into Orchard? 回答1: All of Orchard's core features are based on NHibernate so it would be difficult to move the entire Orchard database to another DBMS not supported by NHibernate. However, Orchard is very extensible and it is quite easy to access all kinds of custom data sources from your own modules. For

Use OrchardCMS, Umbraco or DotNetNuke as a component in ASP.NET application

不打扰是莪最后的温柔 提交于 2019-12-07 18:10:26
OrchardCMS , Umbraco and DotNetNuke are CMSes in .Net galaxy. They work as stand alone applications well. Suppose I have a requirement that need CMS features in an another ASP.NET MVC application. I do not like to implement CMS again in the application. Rather I like to use current CMSes as a component of application. Is it possible at all to use for example OrhcardCMS as a component of my MVC application? It is ideal to have relations between CMS and application itself, for example I can load entities from CMS, update them etc. I know there are integration techniques in .Net. For example ASP

Why is Orchard so slow when executing a content item query?

有些话、适合烂在心里 提交于 2019-12-07 16:52:01
问题 Lets say i want to query all Orchard user IDs and i want to include those users that have been removed (aka soft deleted) also. The DB contains around 1000 users. Option A - takes around 2 minutes Orchard.ContentManagement.IContentManager lContentManager = ...; lContentManager .Query<Orchard.Users.Models.UserPart, Orchard.Users.Models.UserPartRecord>(Orchard.ContentManagement.VersionOptions.AllVersions) .List() .Select(u => u.Id) .ToList(); Option B - executes with almost unnoticeable delay

Including Autofac.Module in custom module breaks Orchard

淺唱寂寞╮ 提交于 2019-12-07 09:17:23
See here & here for why I'm trying to do this. I have a custom module that I'm building (and which is it's own .csproj in the Orchard .sln, as normal) I have a (relatively complex) dependency that I wish to inject into Orchard. Currently if I build and run the code it's perfectly happy until it hits my dependency at which point it null-refs (as I'd expect it to). I can access the admin site and any pages that don't reference the dependency. I add a reference to Autofac to my project. -> All fine. I add the following class: using System; using Autofac; namespace MyCustom.Module.Namespace {

orchard cms rendering shape as email template

て烟熏妆下的殇ゞ 提交于 2019-12-07 09:00:01
问题 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

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

不羁的心 提交于 2019-12-07 07:46:15
问题 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",

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

我的未来我决定 提交于 2019-12-07 07:01:09
问题 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. 回答1: I'm using Orchard in two medium-sized commercial projects and it works very well. It is perfectly stable. What