The apps listed here are publicly known to be built with Xamarin.Forms.
For a lengthy list of customer case studies and endorsements, visit the Xamarin Customer page.
https://play.google.com/store/apps/details?id=br.com.JetEbusiness.ZapCommerce
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Piranha; | |
using Piranha.AspNetCore.Services; | |
using Piranha.Models; | |
using PiranhaCMS.Models; | |
using Microsoft.AspNetCore.Authorization; |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Umbraco.Cms.Core.Cache; | |
using Umbraco.Cms.Core.Logging; | |
using Umbraco.Cms.Core.Routing; | |
using Umbraco.Cms.Core.Security; | |
using Umbraco.Cms.Core.Services; | |
using Umbraco.Cms.Core.Web; | |
using Umbraco.Cms.Infrastructure.Persistence; | |
using Umbraco.Cms.Web.Common.Models; |
@inherits Umbraco.Web.Macros.PartialViewMacroPage | |
@{ var mediaId = Model.MacroParameters["mediaId"]; } | |
@helper DisplayFolder(dynamic folder, bool collapsed) { | |
var items = folder.Children().OrderBy("DocumentTypeAlias Desc,Name"); | |
if (items.Any()) { | |
<a class="list-group-item" role="button" aria-expanded="false" data-toggle="collapse" href="#macro-mediaList-folder-@folder.Id"> | |
<i class="glyphicon glyphicon-folder-open"></i> @folder.Name | |
</a> | |
<div class="list-group @(collapsed?"collapse":"collapse in") well well-sm" id="macro-mediaList-folder-@folder.Id"> | |
@foreach(var item in items) { |
The apps listed here are publicly known to be built with Xamarin.Forms.
For a lengthy list of customer case studies and endorsements, visit the Xamarin Customer page.
https://play.google.com/store/apps/details?id=br.com.JetEbusiness.ZapCommerce
using Umbraco.Cms.Core.DependencyInjection; | |
using Umbraco.Extensions; | |
using Umbraco.Cms.Web.BackOffice.Security; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Configuration; | |
namespace Umbraco.Cms.Web.UI.NetCore.Configuration | |
{ | |
public static class GoogleAuthenticationExtensions | |
{ |
public void Configuration(IAppBuilder app) | |
{ | |
//Configure the Identity user manager for use with Umbraco Back office | |
// *** EXPERT: There are several overloads of this method that allow you to specify a custom UserStore or even a custom UserManager! | |
app.ConfigureUserManagerForUmbracoBackOffice( | |
ApplicationContext.Current, | |
//The Umbraco membership provider needs to be specified in order to maintain backwards compatibility with the | |
// user password formats. The membership provider is not used for authentication, if you require custom logic | |
// to validate the username/password against an external data source you can create create a custom UserManager |
using Newtonsoft.Json; | |
using System; | |
using System.Net; | |
using System.Web; | |
using System.Web.Mvc; | |
using Umbraco.Core.Models; | |
using Umbraco.Core.Models.PublishedContent; | |
using Umbraco.Web.Models; | |
using Umbraco.Web.Mvc; |
Here are a few example use cases, these use cases combine filter with other parameters to make useful API queries. The syntax for any of this may change between now, implementation, and release - they're meant as illustrative examples :)
api.posts.browse({filter: "tags:[photo, video] + id:-5", limit="3"});
GET /api/posts?filter=tags%3A%5Bphoto%2Cvideo%5D%2Bid%3A-5&limit=3
Using the ASP.NET bundling and minifications is pretty straight forward, but here is a small guide that take care of a few gotchas when implementing bundles in your Umbraco project.
ASP.NET Bundling and Minifications is part of the Microsoft ASP.NET Web Optimization Framework and is installed via NuGet;
PM> Install-Package Microsoft.AspNet.Web.Optimization
Once this is done, you need to create a BundleConfig.cs
in your App_Start
1 folder. This is where you register your different bundles. It can be extremely simple, or it can be more complex, but the gist of it is this;
// 1 | |
db.BeginTrans(); | |
// ... do stuffs | |
db.Commit(); // or db.Rollback(); | |
// 2 | |
using(var t = db.BeginTrans()) // where t is LiteTransaction | |
{ | |
// ... do stuffs |