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 web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 --> | |
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | |
<!-- | |
Set your connection string in the XML snippet below | |
--> | |
<connectionStrings> | |
<add name="umbracoDbDSN" |
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 | |
@{ | |
Layout = null; | |
umbraco.library.ChangeContentType("text/plain"); | |
} | |
@(Model.Content.GetPropertyValue<string>("fileContent")) |
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
<add name="robots-rewrite" | |
virtualUrl="^~/robots.txt" | |
destinationUrl="~/robotstxt" | |
/> |
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 | |
@{ | |
Layout = null; | |
umbraco.library.ChangeContentType("text/xml"); | |
} | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
@foreach (var root in Umbraco.TypedContentAtRoot()) | |
{ |
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.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using MyProject.Models; | |
using Umbraco.Web; | |
using Our.Umbraco.Ditto; | |
namespace MyProject.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
builder.RegisterInstance(umbracoHelper.ContentQuery).As<ITypedPublishedContentQuery>(); | |
builder.RegisterType<ResourceService>().As<IResourceService>(); |
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 umbracoHelper = new Umbraco.Web.UmbracoHelper(Umbraco.Web.UmbracoContext.Current); | |
// Or from any other environment that comes with UmbracoHelper already available https://our.umbraco.org/documentation/reference/querying/umbracohelper/ | |
// UmbracoHelper.ContentQuery implements the ITypedContentQuery interface | |
var resourceService = new ResourceService(umbracoHelper.ContentQuery); |
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
// Example of a React state. Manage this with Flux, Redux, black magic, etc... | |
import AccountFields from '../Components/AccountFields' | |
import SurveyFields from '../Components/SurveyFields' | |
import Confirmation from '../Components/Confirmation' | |
let pages = [ | |
{"Title": "Account Fields", "ActiveComponent": React.createFactory(AccountFields) }, | |
{"Title": "Survey Fields", "ActiveComponent": React.createFactory(SurveyFields) }, | |
{"Title": "Confirmation", "ActiveComponent": React.createFactory(Confirmation) } | |
] |
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 Autofac; | |
using Autofac.Integration.Mvc; | |
using Autofac.Integration.WebApi; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Optimization; | |
using MyApp.Services; | |
using MyApp.Services.Interfaces; |
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
const KitchenSink = () => (<div classNameName="App"> | |
<div className="navbar navbar-default navbar-static-top"> | |
<div className="container"> | |
<div className="navbar-header"> | |
<button type="button" className="navbar-toggle" data-toggle="collapse" data-target=".header-collapse"> | |
<span className="sr-only">Toggle navigation</span> <span className="icon-bar"></span> <span className="icon-bar"></span> <span className="icon-bar"></span> | |
</button> | |
<a className="navbar-brand" href="#">Kitchen Sink</a> | |
</div> |