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
<rewrite> | |
<rules> | |
<rule name="orgRewrite" 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="Redirects umbraco.io to actual domain" stopProcessing="true"> |
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
The situation is this... you can no longer get into the umbraco backoffice for one reason or another... trust me it happens! | |
So, there is a package you can download and it works in most cases: | |
https://our.umbraco.org/projects/developer-tools/umbraco-admin-reset/ | |
With this package you simply upload the dll to the server via ftp and place it in the .bin folder and you can login in with Admin and Admin1234! | |
=================================================== | |
however, if you are doing local dev with a compact SQL DB you will have to open the db in web matrix or similar then you can use this command: | |
UPDATE umbracoUser set userdisabled=0, userLogin='admin', userPassword='bnWxWyFdCueCcKrqniYK9iAS+7E=' where id=0 |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
<div id="formsDocsArea"> | |
@if(@Model.Content.HasValue("docsFolder") && @Model.Content.GetPropertyValue<string>("asHideShow") == "True"){ | |
var mediaRoot = @Model.Content.GetPropertyValue("docsFolder"); | |
<!-- comment --> | |
foreach( var item in Umbraco.TypedMedia(mediaRoot).Children){ | |
if(@item.ContentType.Alias =="Folder" && Umbraco.TypedMedia(@item.Id).Children.Count() > 0){ | |
@listFolders("hs", @item, Umbraco.TypedMedia(@item.Id).Children.Count().ToString()) | |
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
.btn3d { | |
position:relative; | |
top: -6px; | |
border:0; | |
transition: all 40ms linear; | |
margin-top:10px; | |
margin-bottom:10px; | |
margin-left:2px; | |
margin-right:2px; | |
text-transform: uppercase; |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@using RJP.MultiUrlPicker.Models; | |
@{ | |
var multiUrlPicker = Model.Content.GetPropertyValue<MultiUrls>("wantToItems"); | |
if (multiUrlPicker.Any()) | |
{ | |
<div class="row"> | |
<div class="col-sm-4"> | |
<p class="wantToHeader">I want to...</p> | |
</div> |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.HomePage> | |
@using ContentModels = Umbraco.Web.PublishedContentModels; | |
@{ | |
Layout = null; | |
} | |
<!DOCTYPE html> | |
<html lang="en" itemscope itemtype="http://schema.org/Article"> | |
<head> | |
<meta charset="utf-8"> |
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.Net.Mail; | |
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@{ | |
string comments = Request["comments"]; | |
string pageID = Request["theID"]; | |
if(Request.Headers["X-Requested-With"] == "XMLHttpRequest"){ | |
var pageNode = Umbraco.TypedContent(pageID.ToString()); | |
MailMessage message = new MailMessage(); | |
string fromEmail = ""; |