URL rewriting and processing in Kentico CMS

Slides:



Advertisements
Similar presentations
Martin Hejtmanek (CTO),
Advertisements

LIS650lecture 1 XHTML 1.0 strict Thomas Krichel
E-Con Sales & Product Configurator What’s new in e-con 4.2.
Master Pages, User Controls, Site Maps, Localization Svetlin Nakov Telerik Corporation
Caching and caching dependencies explained in Kentico CMS
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
Kentico CMS 5.5 R2 What’s New. Highlights Intranet Solution Document management package – WebDAV support – Project & task management – Document libraries.
INTRODUCTION TO ASP.NET MVC AND EXAMPLE WALKTHROUGH RAJAT ARYA EFECS - OIM DAWG – 4/21/2009 ASP.NET MVC.
MMDE5011 – INTERACTIVE MEDIA PRACTICE 1 WEEK 1: INTRODUCTION TO HTML5
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
UWWD In our quest to eliminate bad websites, we present…. HALLELUJAH!!
Kentico Initial site install, setup and configuration
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Scottish Legal Aid Board Content Management using OpenCms Martin Spinks CTO Navyblue Tuesday, March 16, 2010.
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
JavaScript & jQuery the missing manual Chapter 11
Ankiro Search for EPiServer CMS by Martin Starch Sørensen Head of Development.
Using the SCC website community.computerhistory.org/scc.
Real World Examples – Part II 7/26/2013Miro Remias, Sr. Solution Architect.
Internet Basics Dr. Norm Friesen June 22, Questions What is the Internet? What is the Web? How are they different? How do they work? How do they.
Building Highly Scalable Websites Karol Jarkovsky Sr. Solution Architect
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
Deutsches Elektronen-Synchrotron DESY Helmholtz Association of German Research Centres Hamburg, Germany The European X-Ray Laser Project.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
E-Commerce: Introduction to Web Development 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics What is a Web.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
JAVA SERVER PAGES. 2 SERVLETS The purpose of a servlet is to create a Web page in response to a client request Servlets are written in Java, with a little.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Customization Using SharePoint Designer 2007 Overview Editing look and feel –Master pages.
Drupal SEO Kristen Pol CruzTech, LLC (Freelance)‏ Web, Drupal & SEO Santa Cruz, CA drupal: kepol.
What’s new in Kentico CMS 5.0 Michal Neuwirth Product Manager Kentico Software.
Web page management system Jonathan Millis Educational Design Resources NTID at RIT.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
Copenhagen, 6 June 2006 EC CHM Multilinguality Anton Cupcea Finsiel Romania.
Content Management Systems Allyson Falkner Spokane County ISD
Solutions using Microsoft Content Management Server 2002 Connector for SharePoint Technologies Sue Corke Mark Harrison Microsoft UK.
Adxstudio Portals Training
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
Apache Web Server Architecture Chaitanya Kulkarni MSCS rd April /23/20081Apache Web Server Architecture.
Bundles, Minification Andres Käver, IT Kolledž
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
Developer Exam Preparation Thom Robbins Bryan Soltis
Using the Kentico CMS API Thom Robbins Bryan Soltis
Macros in action Martin Hejtmanek CTO, Kentico software s.r.o.
June 30, 2005 Public Web Site Search Project Update: 6/30/2005 Linda Busdiecker & Andy Nguyen Department of Information Technology.
Making the Most of Search in SharePoint 2013 Christina Wheeler.
Performance optimization and caching in Kentico CMS Martin Hejtmanek (CTO), Webinar 9/16/2009.
I2CE Framework I2CE: Intrahealth Informatics Core Engine Base Web Framework on which iHRIS Manage and iHRIS Qualify are built on: Module Structure Magic.
Advanced transformations in Kentico CMS Martin Hejtmanek (CTO), Webinar 8/19/2009.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
ASP.NET Forms.
Objective % Select and utilize tools to design and develop websites.
Cms Full-featured Flexible Web Content Management System for All Your Needs.
Web Application Web Application are programs that can be executed either on a Web server or in a Web browser. An Online store accessed through a browser.
Objective % Select and utilize tools to design and develop websites.
Quick Start Guide for Visual Studio 2010
MVC Framework, in general.
Creating websites from scratch using Portal Engine
Web Development in Microsoft Visual Studio 2013
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Anatomy of an ASP.NET Page
Creating web sites from scratch using ASPX model
Presentation transcript:

URL rewriting and processing in Kentico CMS Webinar 10/21/2009 URL rewriting and processing in Kentico CMS Martin Hejtmanek (CTO), martinh@kentico.com

Topics Document name vs. alias What is an alias path? Document aliases and URLs Permanent vs. user friendly URLs URL priorities URL extensions / extensionless mode How does URL rewriting work? Difference between Portal and ASPX page template processing File processing and URLs Wildcard URLs

Document name vs. alias Document name – Nice and friendly name Home About us Domů (czech) بيتنا (arabic) – found on Google  Alias – Form of the document friendly for URLs and clients About-us (without spaces) Domu (without punctuation) Bayt (english pronunciation)

What is an alias path? Document aliases connected with / / /Home /Products/Phones-and-TVs/Nokia-9910 /News /News/News-1 /News/News-2 Selecting document by alias path (TreeProvider.SelectNodes) /Home = Document “Home” /News/% = All children under “News” document => WHERE NodeAlias LIKE ‘/News/%’ %/Best = Any document with alias “Best”

Document aliases and URLs NodeAliasPath = Default document alias = Location in the tree Alias path, all cultures of document share one Created automatically from aliases on the path DocumentURLPath = Alternative path for the document URL path – Customizable per culture version If defined, is handled as the main document URL Defined automatically (based on document names on the path) Defined by the editor (any path) Document aliases (from in 4.0) Any number of additional aliases (locations for the document) All cultures / per culture Document extension – Main / defined for aliases (.jpg, .gif, etc.)

Permanent vs. user friendly URLs Permanent URL - Will work any time in future /getdoc/eb1b5175-d7e6-479e-a19e-dbd6be035c16/home.aspx Contains NodeGUID which identifies the document Friendly URL (easily readable) – May not work in future if you change the document alias(es) Based on Alias path / URL path / Aliases /Home.aspx /News/News-1.aspx Friendly with configured friendly URL extension /News/News-1.html /News/News-1 (extensionless) /Files/Home.jpg (CMS.File document with specific extension)

URL priorities 1) Searched by URL path (if found, specifies also the culture) 2) Searched by Alias path (uses current culture) 3) Searched by Document aliases (uses current culture) Wildcards (later)

URL extensions / extensionless mode Settings -> URLs -> Friendly URL extension (works anywhere) .aspx by default -> /Home.aspx You can configure any extension, see documentation .htm -> /Home.htm Extensionless mode (friendly extension is empty) (none) -> /Home Other than default processed with the handler page in Kentico ~/CMSPages/handler404.aspx Document can override the default extension in its properties

How does URL rewriting work? 1) Request from client /Home.aspx?abc=def 2) AuthorizeRequest -> RewriteURL(…) does RewritePath to: 2a) Portal template /CMSPages/PortalTemplate.aspx?abc=def&aliaspath=/Home Page loads the controls dynamically from XML of the template 2b) ASPX template /<template path>?abc=def&aliaspath=/Home Controls are already on the page template defined with ASPX 3) Controls load their content using their settings or context values NOTE: With 404 handler, the IIS serves …/handler404.aspx?aspxerrorpath=/Home.aspx?…

Difference between Portal and ASPX Portal engine (templates) One shared physical template for all pages (dynamic) All controls loaded dynamically and hierarchically Completely built on Kentico CMS engine (can be developed through browser) (control over visual inheritance) ASPX page templates Different physical templates for different pages Content of the template is defined statically by the ASPX code Development in Visual studio Control over the entire page (can completely change the default page behavior) – Not really necessary in 99% of cases

File processing and URLs GetXYZFile scripts CMS.File – Accessing with same path as document /Files/logo.aspx -> /CMSPages/GetFile.aspx?nodeguid=<guid> (document node GUID) Other files Document attachments - /CMSPages/GetFile.aspx?guid=<guid> (attachment GUID) Object attachments - /CMSPages/GetMetaFile.aspx?guid=<guid> (metafile GUID) Media files - /CMSPages/GetMediaFile.aspx?fileguid=<guid> (media file GUID) etc.

Possible file URLs (based on settings) Document files (CMS.File only) Document path /Files/logo.aspx Permanent document path /getdoc/<nodeguid>/<anyname>.aspx /CMSPages/GetFile.aspx?nodeguid=<nodeguid> Document attachments (any document) /getattachment/<nodealiaspath>/<filename>.aspx /getattachment/<attachmentguid>/<anyname>.aspx /CMSPages/GetFile.aspx?guid=<attachmentguid> Meta files (object attachments) /getmetafile/<metafileguid>/<anyname>.aspx /CMSPages/GetMetaFile.aspx?guid=<metafileguid> Media files /getmedia/<mediafileguid>/<anyname>.aspx /CMSPages/GetMediaFile.aspx?fileguid=<mediafileguid>

Wildcard URLs (new in 4.0) Document /DisplayProduct URL path (alias) /Products/{name} (doesn’t have to match alias path) Translates as /DisplayProduct.aspx?name=<value> /Products/Nokia-9110 /DisplayProduct.aspx?name=Nokia-9110 More complicated wildcards /{country}/Hotels/{hotel}/Menu /Czech/Hotels/Grand/Menu /DisplayMenu.aspx?country=Czech&hotel=Grand Similar to ASP.NET routing Processed within the rewriting chain in matching wildcard found

Q&A Now is the time for your questions The webinar recording will be available on our new Partner portal and later on the DevNet.