orchardcms

Display MediaLibraryPickerField when editting a part

你离开我真会死。 提交于 2019-12-12 15:09:57
问题 I'm missing something here and can't for the life of me figure out what. I've added a MediaLibraryPickerField to a part I created: ContentDefinitionManager.AlterPartDefinition(typeof (FloorPlanPart).Name, cfg => cfg .WithField("Photo", f => f .OfType("MediaLibraryPickerField") .WithDisplayName("Photo") .WithSetting("MediaLibraryPickerFieldSettings.Required", "true"))); I can verify that this field has been added correctly to my part. This part belongs to a custom type:

orchard cms: how to add media picker field to anew module

这一生的挚爱 提交于 2019-12-12 12:23:59
问题 I am building a module for orchard cms. I would like to use the mediapiker module in my module. Through the orchard backend interface, its possible to add a moudle to a content item. What is not clear, is how to use one module in another. how do I add the mediapiker field to my razor view in visual studio? 回答1: You should take a look at MediaPickerFieldDriver.cs and MediaPicker.Edit.cshtml. They are both in Orchard.Fields. That should give you everything you need. Then again it's not entirely

Can't open .sdf file in VS 2012: Unspecified error

会有一股神秘感。 提交于 2019-12-12 12:09:48
问题 I am trying to open an .sdf file in Visual Studio Web Express 2012 . It's my local Orchard environment, but I suppose that doesn't matter much, as I have found this error all over the place when Googling. However I only found solutions for Visual Studio 2010 and lower, so they don't seem to apply to me, since they usually include installing Visual Studio 2010 Tools for SQL Server Compact. Which doesn't work with 2012 obviously. Here is the error when I try to open the file directly from VS

Orchard CMS Adding a links in HTML widget

China☆狼群 提交于 2019-12-12 12:09:14
问题 I'm trying to add links to pages in the HTML widget. I'm currently running orchard as a virtual directory, so I can't use '/' . Also since I'm working on a dev site then copying over to a live site, I'm not sure if the site will be running as a virtual directory or from the root. I've just realised that all links entered via the HTML widget will have a problem, since you can't use '~' , also it looks like the image links are fixed, so deploying to a different location won't work ie. from

How to add Image Field to Blog Post Summary in Orchard CMS?

∥☆過路亽.° 提交于 2019-12-12 09:53:32
问题 Looking to display the Image Field in the Blog Post Summary on my Orchard site. It current displays on the blog post itself but not in the summary. How do I add it to the summary? 回答1: The display of parts and fields is defined in the placement.info files found in each module. Assuming you're using the Image Field from the Contrib.ImageField module, You will need to override the default placement of the field for the summary display type (which is defined in Modules\Contrib.ImageField

Orchard Dynamic Forms Miscues

陌路散爱 提交于 2019-12-12 06:45:18
问题 I am following the instructions from the Orchard documentations to use a dynamic form. http://docs.orchardproject.net/en/latest/Documentation/Creating-Dynamic-Forms/ The trouble is that it is not treating it like a form widget and so I can not place a form on a page. I am sure that I am missing something. It is being created as a content type but I can't put the form into the site. I am sure I am doing something wrong. I am using version 1.10.0 of Orchard. Thanks gang. 回答1: Somewhere on

Orchard Dashboard is missing

偶尔善良 提交于 2019-12-12 05:48:19
问题 In my project Orchard Dashboard is missing When I try to open any dashboard pages like http://localhost:30321/OrchardLocal/Admin, localhost:30321/OrchardLocal/Admin/Settings/Email etc are throwing one error message like The controller for path '/OrchardLocal/Admin/Settings/Email' was not found or does not implement IController. 回答1: I fixed this issue by changing the Project URL(http://localhost:30321/OrchardLocal) in Web under Project properties and created new virtual directory. Now it's

Visual studio missing user interface bits

时光怂恿深爱的人放手 提交于 2019-12-12 04:22:18
问题 I used orchard's codegen to make a boilderplate module. This created a csproj with boilerplate files and folders in MVC3 format. However visual studio doesnt have the UI helpers that come along with an MVC project (such as add controller). How do i change the project settings to get the nice MVC UI back? Normal MVC project: Orchards boilerplate project: 回答1: Answer here: https://stackoverflow.com/a/4610008/828859 Needed to change this line in the csproj file <ProjectTypeGuids>{E53F8FEA-EAE0

Orchard Shape Wrapper

只谈情不闲聊 提交于 2019-12-12 03:23:28
问题 I'm following the Orchard documentation on Wrappers but couldn't wrap my head around it. http://docs.orchardproject.net/Documentation/Understanding-placement-info#Wrapper According to the documentation, we were to create Wrapper.HtmlContent.cshtml and insert the following in it. <div class="htmlWrapperContent"> @Model.Html </div> But what is Model.Html ? Is it a Shape ? I know Model is the Shape itself. Html is not a built-in property of Shape or IShape so I figure it must be some custom

Register/ Login/ Membership module in Orchard

吃可爱长大的小学妹 提交于 2019-12-12 02:23:56
问题 I can't figure out how to add Register/Login functionality to a site in Orchard. Is there a Membership module or some configuration I need to enable? EDIT: What I had in mind were modules along the lines of these that extend the existing User model with registration/profile functionality: Extended Registration module: http://extendedregistration.codeplex.com/ Orchard Profile module: http://orchardprofile.codeplex.com/ 回答1: It's under settings/users in the admin ui. 回答2: In the Dashboard