This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Orchard; | |
using Orchard.Autoroute.Services; | |
using Orchard.Environment.Extensions; | |
using Orchard.FileSystems.Media; | |
using Orchard.MediaLibrary.Factories; | |
using Orchard.MediaLibrary.Services; | |
using System.Collections.Generic; | |
using System.IO; | |
namespace Patient.Framework.Media { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var requireSettings = new RequireSettings { | |
Type = "script", | |
Name = "name.of.a.script.in.a.manifest.file | |
}; | |
if (_resourceManager.FindResource(requireSettings) != null) { | |
_resourceManager.Require("script", requireSettings.Name).AtFoot(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
using Orchard; | |
using Orchard.Mvc.Filters; | |
using Orchard.UI.Admin; | |
namespace Example.Filters { | |
public class ScriptFilter : FilterProvider, IResultFilter { | |
private readonly IOrchardServices _orchardServices; | |
public ScriptFilter(IOrchardServices orchardServices) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using Orchard.ContentManagement; | |
using Orchard.MediaLibrary.Fields; | |
using Orchard.MediaLibrary.Models; | |
namespace Patient.Core.Extensions { | |
public static class FieldExtensions { | |
public static MediaPart GetDefaultMediaPart(this MediaLibraryPickerField field) { | |
if (field == null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Mvc; | |
using Orchard; | |
using Orchard.Caching; | |
using Orchard.Environment.Configuration; | |
using Orchard.Environment.Extensions; | |
using Orchard.OutputCache.Filters; | |
using Orchard.OutputCache.Models; | |
using Orchard.OutputCache.Services; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Patient3.Helpers.ViewHelper.DisplayChildrenOrdered(Model, WorkContext, Display) | |
using System.Web; | |
using Orchard; | |
using Orchard.Mvc.Spooling; | |
namespace Patient3.Helpers { | |
public static class ViewHelper { | |
public static IHtmlString DisplayChildrenOrdered(dynamic model, WorkContext workContext, dynamic display) { | |
var writer = new HtmlStringWriter(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<ServiceDefinition name="PatientAzure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2015-04.2.6"> | |
<WebRole name="Your.Azure.Web" vmsize="Standard_D3_v2"> | |
<Sites> | |
<Site name="Orchard" physicalDirectory="..\..\Source\YourPrecompiledDrop"> | |
<Bindings> | |
<Binding name="Http" endpointName="Http" /> | |
</Bindings> | |
</Site> | |
</Sites> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
using Orchard.Mvc.Routes; | |
using Patient.Framework.Routing; | |
namespace Patient.Forums { | |
public class Routes : IRouteProvider { | |
private const string _area = "Patient.Forums"; | |
private readonly IForumControllerRouteConstraint _constraint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- For more information on using transformations | |
see the web.config examples at http://go.microsoft.com/fwlink/?LinkId=214134. --> | |
<HostComponents xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | |
<Components xdt:Transform="Replace"> | |
<Component Type="Orchard.Environment.Extensions.ExtensionMonitoringCoordinator"> | |
<Properties> | |
<!-- Set Value="true" to disable new extensions monitoring --> | |
<Property Name="Disabled" Value="true"/> | |
</Properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<Configuration Condition="$(Configuration) == ''">Release</Configuration> | |
<DeploymentLocation>$(MSBuildProjectDirectory)\Packages</DeploymentLocation> | |
</PropertyGroup> | |
<Import Project="$(MSBuildProjectDirectory)\SlowCheetah\SlowCheetah.Transforms.targets"/> | |
<Import Project="$(MSBuildProjectDirectory)\MsBuildTasks\MSBuild.Community.Tasks.Targets"/> | |
<Target Name ="Build"> |