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
<rewriteMaps> | |
<rewriteMap name="nlRewrites"> | |
<add key="/" value="https://www.newdomain.eu/nl"/> | |
<add key="/het-bedrijf" value="https://www.newdomain.eu/nl/over-ons/"/> | |
<add key="/producten/lamp value="https://www.newdomain.eu/nl/producten/verlichting/lamp"/> | |
</rewriteMap> | |
</rewriteMaps> | |
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.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using Newtonsoft.Json.Linq; | |
using Umbraco.Core.Composing; | |
using Umbraco.Core.Models.PublishedContent; | |
using Umbraco.Web; | |
using Umbraco.Web.Mvc; | |
using Umbraco.Web.PublishedModels; |
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 Umbraco.Core.Models.PublishedContent; | |
using Umbraco.Web; | |
namespace SomeNamespace | |
{ | |
public static class IPublishedContentExtensions | |
{ | |
public static MediaFileType GetMediaFiletype(this IPublishedContent mediaItem) | |
{ | |
if (mediaItem == null) |