orchardcms-1.8

Publishing/Deploying Orchard CMS 1.8 with Visual Studio 2013

百般思念 提交于 2019-12-22 12:39:33
问题 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 2012 SP1 as the database. How do I Publish/Deploy to the in-house "production" machine that has:

Orchard CMS Duplicate Content Error

柔情痞子 提交于 2019-12-13 06:50:55
问题 We have a web site built with Orchard CMS v1.8. We have had a couple of instances where the person that manages content has not been able to save changes to a Page. They receive the following error. An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back Sequence contains more than one matching element System.InvalidOperationException: Sequence contains more than one matching element at System.Linq.Enumerable.SingleOrDefault

Calling Script.Require in Shape view returned from IResultFilter not working in Orchard CMS?

与世无争的帅哥 提交于 2019-12-11 17:40:11
问题 I'm currently writing my own module that needs some scripts to be loaded on all pages, both on the front-end and the dashboard, where the user is authorized to edit content. I've written an implementation of the IResultFilter that adds a shape to the 'tail' zone in the site's theme. The shape is added to the page correctly and all is OK except for one thing. In the same shape I'm also trying to call Script.Require on a few scripts that I've added to the ResourceManifest, but they're not being

How to suppress parts in Orchard based on zone

笑着哭i 提交于 2019-12-11 09:55:17
问题 How can suppress the Tags Part of the summary How2 content type when it appears in the aside second. I have the following code in my placement.info file but that affects all summarized How2 content types. <Match ContentType="How2"> <Match DisplayType="Summary"> <Place Fields_Common_Text-ToolsRequired="-"/> <Place Parts_Tags_ShowTags="Content:9.9"/> </Match> </Match> I would only like to suppress the tags only if they appear in the asidesecond zone which is a projection widget. Is there an

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

Why doesn't the compiler find my razor helpers in an Orchard theme?

牧云@^-^@ 提交于 2019-12-11 03:23:45
问题 I would like to share among views the logic for creating an img tag from a mediaPart. I have already created the following razor helper method: @helper CreateImgFromMediaPart(dynamic mediaPart, int width = 150) { var imgSrc = mediaPart != null ? mediaPart.MediaUrl : string.Empty; var imgAlt = mediaPart != null ? mediaPart.AlternateText : string.Empty; <img alt="@imgAlt" src="@imgSrc" /> } I have tried this by creating an App_Code folder, putting into it a MyHelpers.cshtml file, and putting in

Error: ValueFactory attempted to access the Value property of this instance

耗尽温柔 提交于 2019-12-11 03:18:55
问题 Error Source File: c:\Projects\WaterfrontSeattle.org\src\Orchard\Logging\OrchardLog4netLogger.cs Line: 63 Source Error: Line 61: // Load the log4net thread with additional properties if they are available Line 62: protected internal void AddExtendedThreadInfo() { Line 63: if (_shellSettings.Value != null) { Line 64: ThreadContext.Properties["Tenant"] = _shellSettings.Value.Name; Line 65: } Research From DuckDuckGoing, here is what we've learned, this type of error happens when we attempt to

Trying to hide Content Parts on Content Type

痞子三分冷 提交于 2019-12-06 12:43:24
问题 I am building Content Types and adding Content Parts specific to a Client and Attorney. All of these parts have fields and/or content pickers, etc. I want to restrict the Client Role to see only Client Content Parts, while I just allow the Attorney Role to see any Content Parts, including it's own Attorney Content Part for a particular Content Type. Again, these are all on the same Content Type, so Content Permissions will not work (except on the Content Type in general). I want to hide the

Trying to hide Content Parts on Content Type

荒凉一梦 提交于 2019-12-04 18:16:05
I am building Content Types and adding Content Parts specific to a Client and Attorney. All of these parts have fields and/or content pickers, etc. I want to restrict the Client Role to see only Client Content Parts, while I just allow the Attorney Role to see any Content Parts, including it's own Attorney Content Part for a particular Content Type. Again, these are all on the same Content Type, so Content Permissions will not work (except on the Content Type in general). I want to hide the Attorney Content Parts when a Client is logged on. I have tried using this: public override void

IIS 8.5 is not serving JS, CSS, and Image files (static content)

霸气de小男生 提交于 2019-11-30 23:02:24
问题 The problem We're running IIS on Windows 8.1 with Update. We're at the Orchard CMS first time setup screen, and IIS is giving 401s for all static content. We have read the following to no avail: IIS 7.5 no images css js showing IIS 7.5 no images css js showing The official Orchard deployment documentation Based on those, this is what I have tried that doesn't work . Turn on the IIS feature to Serve Static Content. Give IIS_IUSRS permission to Read, write & execute. Give the site's application