orchardcms

Image not appearing from a Content Part with a Media Picker Field

夙愿已清 提交于 2019-12-11 13:17:32
问题 I am trying to achieve the carousel and have got so far except not being able to show the image. The sample can be found here http://www.stevetaylor.me.uk/image-carousel-using-twitter-bootstrap-and-orchard-cms-projections. To replicate do the following: 1.Create a new content type a. Creatable b. Add Fields i. Field Name: Image; Type: Media Picker; ii. Field Name: Priority ; Numeric Field 2.Go to Admin>>Content. I would expect to see both the Image Url and Priority Value. However only see the

withfield orchard 1.4.2

拈花ヽ惹草 提交于 2019-12-11 13:14:34
问题 I'm new to orchard and am following http://skywalkersoftwaredevelopment.net tutorials. ContentDefinitionManager.AlterPartDefinition(typeof(AddressPart).Name, p => p .Attachable(false) .WithField("Name", f => f.OfType(typeof(TextField).Name)) .WithField("AddressLine1", f => f.OfType(typeof(TextField).Name)) .WithField("AddressLine2", f => f.OfType(typeof(TextField).Name)) .WithField("Zipcode", f => f.OfType(typeof(TextField).Name)) .WithField("City", f => f.OfType(typeof(TextField).Name))

Orchard CMS: Modifying a menu item alternate and iterating over the items

醉酒当歌 提交于 2019-12-11 12:23:27
问题 Let's say I created a menu titled "Main Menu" from the admin panel and I need to customize the default markup, e.g. let's say I want to modify/replace the <ul> , <li> as well as the surrounding <article> and <nav> tags. I assume that I have to come up with something like this in my Parts.MenuWidget.cshtml alternate template. <ul class="a b c"> for each item in menuItems: display("<li>" + item + "</li>") end </ul> How do I do that in Orchard? 回答1: That's quite simple. You could first create an

How to use/add existing Media Library widget into a custom widget in Orchard CMS?

有些话、适合烂在心里 提交于 2019-12-11 11:04:40
问题 I'm writing a custom widget, I want to create a form that contains an image picker that selects the image from the existing media library. I've noticed that I could use the existing Media Library widget, but I have no idea how to include it in my widget. Can I import it from the EditPart view somehow ? [Update] Here is part of a sample code. Assuming you have this Edit Part template: @using MediaLibrary.FilePicker //Is there a way to add it doing something like this?? @model Maps.Models

Publishing/Deploying Orchard CMS 1.8 w/ Visual Studio 2013 - Not all files are transfered to server

寵の児 提交于 2019-12-11 09:47:43
问题 This is a follow-up issue regarding Publishing/Deploying Orchard CMS 1.8 with Visual Studio 2013 I am new to Orchard 1.8 and have developed a website using Visual Studio Premium 2013 Version 12.0.21005.1 (with the .NET 4.5.51641 Framework) and I need to know how to Publish/Deploy an Orchard website from a local desktop development box to an in-house "production" machine that has Windows Server 21012 R2, and IIS 8.5. The development version of the site (on my local machine) uses SQL Server

How to get the Query preview list in code | Orchard 1.7

↘锁芯ラ 提交于 2019-12-11 09:40:02
问题 There is a Custom Content Type "SideBarLinks" in CMS. I created a query to get the list of items of this type: "SideBarLinks" and specified sort and filter criteria as well. This works fine when Previewing the query results in CMS. Is there a way i can get the same list in code, say in the Action method of any Controller ? Which Class/Services of Orchard is there to query ? And how to perform all those filtering, sorting of the Query results in a Controller method ? So far I used to query

Retrieving content and all associated properties in Orchard CMS

邮差的信 提交于 2019-12-11 08:14:58
问题 Is there a good way of programmatically pulling back a list of Content Items from Orchard? At the moment I'm doing this, which returns a ContentPartRecord and the Title, but it's not pretty by any means: public IEnumerable<LookupViewModel> Lookup(string searchText) { var items = _contentManager .Query<MyItemPart, MyItemPartRecord>() .Join<TitlePartRecord>() .Where(x => x.Title.Contains(searchText)) .OrderBy(x => x.Title) .List(); return items .Select(x => new LookupViewModel() { Text = x.Name

completed an orchard tutorial on displaying a calendar but nothing displays?

自作多情 提交于 2019-12-11 07:51:45
问题 I was trying to display some sort of booking system in orchard and I found a set of tutorials that allow you to set queries to display on different dates... So ive went through all the 18 tutorials for orchard CMS 1.6 displaying a calendar on screen http://www.youtube.com/watch?v=Iv7rA-viyTw and my calendar doesnt appear on screen? ive tried changing the widget of it (which selects dates on the calendar) and nothing appears, im logged in as authentic user, (as it is set to show-when creating

unable to run locally orchard azure project ysod fresh off sources

巧了我就是萌 提交于 2019-12-11 07:40:27
问题 I am trying to run locally Orchard.Azure.CloudService project without any code changes to the official stable release 1.7.1 (58c21815). full source address is @ https://git01.codeplex.com/orchard . Here is the steps to reproduce the error: launch the Orchard.Azure solution select "Debug" build click on press F5 start debugging the page will show "Server Error in '/' Application." None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Orchard

Store global token in Cache

我是研究僧i 提交于 2019-12-11 07:32:04
问题 I have a module which in the AuthorizationServiceEventHandler Checking or Complete Events i'm sending a request to an external API which gives me some instructions like what modules should be enabled/displayed to the user . The appraoch i want to follow is storing this instructions somewhere probably on the cache and then whenever a Service module Exposed being requested by the user (through a controller ) the module will check the instructions using the CacheManager . the problem with the