This file contains hidden or 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.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Web; | |
using Archetype.Models; | |
using Examine; | |
using Newtonsoft.Json; | |
using Umbraco.Core; |
This file contains hidden or 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.Net.Mail; | |
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@{ | |
HttpContext.Current.Response.Write("starting up..."); | |
string firstName = Request["firstName"]; | |
string lastName = Request["lastName"]; | |
string thePosition = Request["thePosition"]; |
This file contains hidden or 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
public int RegisterMember(string memberName, string emailAddress, string memberPassword, string memberTypeAlias, string memberGroupName) | |
{ | |
int umbracoMemberId = -1; | |
if (!MemberExists(emailAddress)) | |
{ | |
IMember newMember = ApplicationContext.Current.Services.MemberService.CreateMember(emailAddress, emailAddress, memberName, memberTypeAlias); | |
try | |
{ |
This file contains hidden or 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 Umbraco.Core; | |
@using Umbraco.Core.Models; | |
@using Umbraco.Core.Services; | |
@using System.Web.Mvc.Html | |
@using ClientDependency.Core.Mvc | |
@using Umbraco.Web | |
@using Umbraco.Web.Models |
This file contains hidden or 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 Umbraco.Core; | |
@using Umbraco.Core.Models; | |
@using Umbraco.Core.Services; | |
@using System.Web.Mvc.Html | |
@using ClientDependency.Core.Mvc | |
@using Umbraco.Web | |
@using Umbraco.Web.Models |
This file contains hidden or 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.UmbracoViewPage<ArchetypeFieldsetModel> | |
@using Archetype.Models; | |
@using System.Text; | |
@using System.Text.RegularExpressions; | |
@using System.Web; | |
@{ | |
var showAll = ""; | |
string DomainName = HttpContext.Current.Request.Url.Host; | |
This file contains hidden or 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 Umbraco.Core; | |
using Umbraco.Core.Events; | |
using Umbraco.Core.Models; | |
using Umbraco.Core.Publishing; | |
using Umbraco.Core.Services; | |
using System.Web.Mvc.Html; | |
using Umbraco.Web; | |
using Umbraco.Web.Models; |
This file contains hidden or 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 pageSize = 8; | |
if(Model.Content.HasValue("numberOfItemsPerPage")){ | |
pageSize = Model.Content.GetPropertyValue<int>("numberOfItemsPerPage");} | |
var page = 1; int.TryParse(Request.QueryString["page"], out page); | |
var items = Umbraco.TypedContent(Model.Content.Id).Children.Where(x => x.DocumentTypeAlias == "exampleAlias" && x.IsVisible()).OrderByDescending(x => x.CreateDate); | |
var totalPages = (int)Math.Ceiling((double)items.Count() / (double)pageSize); | |
if (page > totalPages) |
NewerOlder