Skip to content

Instantly share code, notes, and snippets.

Reference: https://our.umbraco.com/packages/developer-tools/301-url-tracker/version-2/47108-Delete-bulk-404-messages
Query: DELETE FROM icUrlTracker WHERE Is404 = 1
<rules>
<rule name="Remove www" stopProcessing="true">
<match url="(.*)" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^www\.(.+)$" />
</conditions>
<action type="Redirect" url="http://{C:1}/{R:0}" appendQueryString="true" redirectType="Permanent" />
</rule>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
@inherits Umbraco.Web.Macros.PartialViewMacroPage
@using Umbraco.Web
@{ var selection = Model.Content.Site().Children.Where(x => x.IsVisible()).ToArray(); }
@if (selection.Length > 0)
{
<ul>
@foreach (var item in selection)
@using System;
@using System.IO;
@using System.Xml.XPath;
@using System.Xml;
@using umbraco.MacroEngines;
@using System.Text.RegularExpressions
@using StraylightDk
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map { height: 90%; width: 90% }
</style>
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using Umbraco.Web
@*
This snippet displays a list of links of the pages immediately under the top-most page in the content tree.
This is the home page for a standard website.
It also highlights the current active page/section in the navigation with the CSS class "current".
*@
git log --pretty=format:"%ad - %an: %s" --after="2018-12-01" --until="2018-12-05"
Delete FROM [dbname].[dbo].[UFRecords]
https://our.umbraco.com/forum/using-umbraco-and-getting-started/87181-unable-to-empty-recycle-bin
https://issues.umbraco.org/issue/CON-941
Add using Umbraco.Forms.Core.Attributes; to the App_Code/ReCaptcha2.cs
Upgrade your RecaptchaPublicKey and RecaptchaPrivateKey values in UmbracoForms.config to the values provided by https://www.google.com/recaptcha/ AND make sure you add your domain! It's confusing because they give you the API keys before you actually register domains...
App_Code/ReCaptcha2.cs: Change line 77 to: var error = field.Settings.ContainsKey("ErrorMessage") ? field.Settings["ErrorMessage"] : string.Empty;
Change App_Plugins/UmbracoForms/Backoffice/Common/FieldTypes/Recaptcha2.html view was still referencing the old recaptcha image path, instead of /App_Plugins/UmbracoForms/Images/recaptcha2.png
Download: https://issues.umbraco.org/_persistent/CON-941/ReCaptcha2.zip