+ All Categories
Home > Technology > Introduction To Umbraco

Introduction To Umbraco

Date post: 13-May-2015
Category:
Upload: ken-cenerelli
View: 2,783 times
Download: 3 times
Share this document with a friend
Description:
A technical presentation on how to Configure and Extend Umbraco
Popular Tags:
30
An Introduction to Configuring and Extending Umbraco CMS Ken Cenerelli Senior Software Developer Alvarnet Corporation [email protected] kencenerelli.wordpress.com @kencenerelli
Transcript
Page 1: Introduction To Umbraco

An Introduction to Configuring and Extending Umbraco CMS

Ken CenerelliSenior Software DeveloperAlvarnet Corporation

[email protected]@kencenerelli

Page 2: Introduction To Umbraco

Agenda

1. IntroductionBackground on Umbraco

2. Configuring UmbracoInstallation

3. Questions + Break4. Extending Umbraco

Umbraco Administration pagesDocument Types, Templates, Stylesheets, Users & Permissions and Packaging & DeploymentCustom development & User Controls

Page 3: Introduction To Umbraco

Umbraco Background

Developed in 2005 by Niels HartvigMore than 85,000 installations worldwideASP.NET, Heinz, Peugeot, Tesco, Wired, FOX and Vogue Magazine run UmbracoDesigned to run within the Microsoft stackAnd best of all… it’s FREE!

Page 4: Introduction To Umbraco

Installation

Umbraco can be used with both Visual Studio and WebMatrixIt can be deployed directly with the Web Platform InstallerHowever the manual install gives you the most control and as developers we like control…

Page 5: Introduction To Umbraco

Installation (cont’d)

A manual install is accomplished through a Web Deploy in IIS 7The Web Deployment Tool can be installed through Microsoft Web Platform Installer from http://www.iis.net/download/webdeployNote: Web Platform Installer will be installed first if it does not exist on your system

Page 6: Introduction To Umbraco

Installation (cont’d)

First we create a database and create a user for the databaseThe database will house the Umbraco settingsNext we create a new website in IIS 7 to house our Umbraco installationWe can then install Umbraco using the WebDeploy package 4.7.1.1 from http://umbraco.codeplex.com/

Page 7: Introduction To Umbraco

Installing & Configuring Umbraco

demo

Page 9: Introduction To Umbraco

Questions + Break

Page 10: Introduction To Umbraco

Accessing the admin site

Access the admin site from the site URL by adding “/Umbraco/” to the end of the pathThe trailing “/” MUST be presentThe admin site is where we can modify all of the Umbraco related items even though we have access to the code

Page 11: Introduction To Umbraco

Accessing the admin site

demo

Page 12: Introduction To Umbraco

Umbraco – Content Creation

Document TypeProperties

TemplateHTML + Place Holders

CreatePage Macros

User Controls/XSLT

web

Page 13: Introduction To Umbraco

Document Types

A way to design data storage and a way to generate the UI to input the dataEg. We can have a movie document type and within it we can have a Title, Genre, etc.We can then extend the document types by adding tabs and propertiesProperties help add data and can make fields mandatoryTabs control the UI to make it more user friendly

Page 14: Introduction To Umbraco

Creating a document type, property and new tab

demo

Page 15: Introduction To Umbraco

Templates

Document types reflect how to store data but templates define how to present the dataTemplates are akin to ASP.NET Master Pages and Nested Master PagesPage templates are inherited by master templates using <asp:Content></asp:Content> elements

Page 16: Introduction To Umbraco

Creating and applying a template

demo

Page 17: Introduction To Umbraco

Stylesheets

Are plain CSS in Umbraco and are used the same way as in normal htmlCan add properties to a stylesheet and attach them to a Richtext Editor

Page 18: Introduction To Umbraco

Creating and applying a stylesheet

demo

Page 19: Introduction To Umbraco

User Controls

Used for custom development when you need to access a database or process user inputCreate a new project to house both a web application project and the Umbraco CMS projectWe will set the Umbraco project to Not To BuildWe then set Post-Build Events to copy the User Controls and DLLs from the web project to the Umbraco project

Page 20: Introduction To Umbraco

Creating a web project to build a user control

demo

Page 21: Introduction To Umbraco

Adding a user control

The user controls are added within the admin siteWithin Umbraco a User Control is called a MacroWe add a macro to the page and content area where you want it to show up.

Page 22: Introduction To Umbraco

Adding a user control

demo

Page 23: Introduction To Umbraco

Debugging a user control

Cannot add a breakpoint and debug as normalHave to use Attach To Process with both Show processes checkboxes checkedAttach to the w3wp.exe processAnother method is to add ?umbdebugshowtrace=true as a query string to any Umbraco-generated page to show stack trace information

Page 24: Introduction To Umbraco

Debugging a user control

demo

Page 25: Introduction To Umbraco

Users, Members and Permissions

Users are administrators or content editorsUsers are a way to limit sections of the site to specific users and specific user functionsMembers give an identity to site visitors so they can register or loginMember Groups act like roles where a member can belong to one or more groupsThe page can then be locked down to a user or to a member group

Page 26: Introduction To Umbraco

Adding users, members and role-base permissions

demo

Page 27: Introduction To Umbraco

Packaging and Deployment

In essence the site was already deployed to the web serverHowever, now that the Web Deployment Tool is installed in your IIS, you can package and deploy your Umbraco site to your production server

Page 28: Introduction To Umbraco

Upcoming

Umbraco 5 with support for MVC and Razor will be released Q2 2012Umbraco 5 training available in the GTA in March

http://umbraco.com/products/training/schedule.aspx

Page 29: Introduction To Umbraco

Resources

http://umbraco.com/http://umbraco.com/help-and-support.aspx

(videos, whitepapers, sample projects, etc.)http://umbraco.com/developers-site.aspxhttp://our.umbraco.org/ (community hub with

forums, wiki, sample projects, etc.)

Page 30: Introduction To Umbraco

Questions?

[email protected]

@kencenerelli


Recommended