Layouts in Fusebox 4 Sandra Clark

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
XHTML Basics.
Advanced Techniques for Web Developers The Power of CSS Sandra Clark Senior Software Developer The Constella Group
1. Content – Collective term for all text, images, videos, etc. that you want to deliver to your audience. 2. Structure – How the content is placed on.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
1st Project Introduction to HTML.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Chapter ONE Introduction to HTML.
Chapter 1 Variables in the Web Design Environment
Structure Content Presentation Semantics.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
1 Web Developer Foundations: Using XHTML Chapter 9 Cascading Style Sheet Concepts.
Creating a Basic Web Page
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
XHTML The Basics A brief history of HTML SGML (Standard Generalized Markup Language) Then came HTML Followed by the browser…and the great browser wars.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
Accessibility and 508 easily with ColdFusion and FuseBox4 xml Sandra Clark
Web page - A Web page is a simple text file that contains a set of HTML tags (code) that describe (to the browser) what should go on a web page. It may.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
1 HTML XHTML. 2 Understand the Doctype tag Know the html tags which are now classed as depreciated Understand how Dreamweaver adds styles Add styles to.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Design and Construction of Accessible Web Sites Michael Burks Chairman Internet Society SIG For Internet Accessibility for People with Disabilities June.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
Internet Web Publishing III. Intro to Cascading Style Sheets Patricia Roberts.
Fundamentals of Web Design Copyright ©2004  Department of Computer & Information Science Introducing XHTML: Module A: Web Design Basics.
Web Standards Web Design – Sec 2-4 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
HTML: Hyptertext Markup Language Doman’s Sections.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Cascading Style Sheets CSS. Source W3Schools
Jozef Goetz, STEM Summer Camp Dr. Jozef Goetz.
Web Design Site Structure. Site File Structure What is a wireframe?
Analytical Sciences, Inc. Voice Fax Voice Fax Giving Nested Layers.
This presentation was written in March 2002 and is provided as a template. It should be tailored to a particular company’s needs as well as updated. The.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
Standards and Compliance. A Brief History of HTML HTML through 1991  Hypertext enabled pages but presentation was lacking HTML 
CIS 228 The Internet Day 2, 9/1/11 Hypertext. The Course Instructor: Bowen Alpern Office hour: GI 137-I, 4-5pm Tu.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
Introduction. Internet Worldwide collection of computers and computer networks that link people to businesses, governmental agencies, educational institutions,
COMP 143 Web Development with Adobe Dreamweaver CC.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
Introducing XHTML: Module A: Web Design Basics
Introducing XHTML: Module A: Web Design Basics
Web Standards Web Design – Sec 2-3
Introduction to HTML.
Concepts for fluid layout
W3C Web standards and Recommendations
Web Standards Web Design – Sec 2-3
Introducing HTML & XHTML:
Brian Kotek INDUS Corporation
CIS 133 mashup Javascript, jQuery and XML
Concepts for fluid layout
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Layouts in Fusebox 4 Sandra Clark

Overview (1 st Half) Layout Concepts in Fusebox 4 Layouts at the Application Level –Banners and Main Navigation Layouts at the Circuit Level –Dynamic Side Navigation Nested Layouts

Layout Concepts in Fusebox4 Fusebox 4 gives the architect and developer the tools to make the layout decisions best for the application. Layouts are under the total control of the developer. Layouts can be as broad based or as granular as you decide.

Layout Concepts Layouts are divorced from your circuit placement. –How you design your circuit directories has NO BEARING now on how your layouts are handled. –This means that architectural design and layout design are totally separate items and have no bearing on each other (Good Thing)

Layouts at the Application Level Application Level Layouts are high level items that keep your entire site consistent. If its not going to be the same throughout your application, it is not an application level layout.

Banners and Main Navigation Top Level Banners and Main Application navigation are perfect contenders for application level layouts.

Is Application Layout Global to the entire site. Promotes Consistency

Not Application Layout Inconsistent between areas of the site.

Using Application Level Layouts Set up in the fusebox.xml file –Call a fuseaction from a “Layout Fuse” Set up Headers in the section Set up Footers in the section

Application Layouts – Fusebox.xml

Application Layouts – Layout circuit.xml

Application Layouts Everything else displays within the header and the footer.

Layouts at the Circuit Level Layouts at the circuit level are items which are consistent within a circuit. Sub Navigation would commonly be a circuit level layout.

Is Circuit Level Layout Consistent within each sub area of the site.

Circuit Layout Considerations Needs to be applied only once per call. Can be called in one of two places. –Fusebox.xml as a plugin in the preprocess phase. Need to write a plugin. –In the circuit’s circuit.xml area. Separate out fuseactions into a public circuit (called via an, form or url submittal. –Put the circuit layout call in this circuit. An internal circuit, one which handles all the internal fuseaction calls. Otherwise, the will be called for every fuseaction call to the circuit (which is not good for a layout).

Dynamic Side Navigation Side Navigation is a perfect example of circuit level layouts. The sub navigation will change for each circuit.

Side Nav Example - Billing

Side Nav Example - System

Circuit Level Layouts using circuit.xml

Nested Layouts Think Russian Dolls, every display fuse was encapsulated in that circuit’s layout which was encapsulated in the parent circuits’s layout …. Fusebox 3 introduced the concept of Nested Layouts which was part of the core files. Every Fusebox 3 application had to deal with Nested Layouts whether they wanted to or not.

Why Not to Use Nested Layouts on New Projects Nested Layouts are linked to nested tables which is a poor aid to accessibility. Nested Layouts are not flexible. Your architecture is directly tied to your layout.

Nested Layouts and Conversion from FB3 Use only on apps you want to move from FB3 to FB4. Not recommended for new applications Nested Layouts use a plugin, nestedlayouts.cfm <plugin name="NestedLayouts" path="“ template="NestedLayouts.cfm"> <parameter name="contentvariable“ value="fuseboxlayout"/>

Nested Layouts and Conversion from FB3 Since each nested layout needs to be captured in a content variable, for each fuseaction currently in FB3 a controller fuseaction must be created which wraps the call.

After the Break How to build Web Sites which are accessible, flexible and easy to manage using the newest tool in our Fusebox 4 layout toolkit!

Break Time

Overview (2 nd Half) Accessible Web Sites and Web Standards Content Variables –A more flexible way to handle layouts –Benefits of Content Variables with Layouts –A Portal Layout –Content Variables and Web Standards Layouts at the Fuseaction Level –Different Fuseactions call for Different Layouts Putting it all together –Breadcrumb Trail

What are Accessible Web Sites Accessibility is a standard promoted by the Worldwide Web Consortium (W3C) It is also a legal requirement for many government web sites. Accessibility deals with making a web site available to users who are disabled. The largest hurdle to making a web site accessible to the disabled is making it available to user’s who are blind and who access your site through a speech browser

Why are Accessible Web Sites Important Accessible Web Sites are important for all types of web sites. –15 – 30% of the general population have functional limitations that can affect their ability to use technology products ( Accessibility helps those who: –Cannot use a mouse (only have access to keyboards) –Are blind –Have other vision impairments –Are Deaf –Are Color Blind.

Design to the Standards What "Standards"? –When we speak about "standards" for the Web, we mean: Structural Languages – XHTML »Extensible Hypertext Markup Language 1.0 and 1.1 » » –XML »Extensible Markup Language 1.0 » Presentation Languages –CSS »Cascading Style Sheets Levels 1 and 2 » » –as well as emerging standards, such as those for television and PDA based browsers.

Why design to the standard “Designing and building with these standards simplifies and lowers the cost of production, while delivering sites that are accessible to more people and more types of Internet devices. Sites developed along these lines will continue to function correctly as traditional desktop browsers evolve, and as new Internet devices come to market.” –

Using Nested Tables for Layouts Most of us use tables for layout. –This is not what tables in HTML were designed for By using tables for layouts, we are not only limiting ourselves, but we are limiting the ways in which our work can be utilized. Tables are limiting, the web is designed to be limitless.

Separating Content from Presentation Content is the most important aspect of the web. –What you get is more important than how you see it. Separating Content from Presentation gives you –Increased accessibility –Improved Performance –Easier initial work and easier maintenance.

CSS and Positioning By using Cascading Style Sheets for positioning and design, we are truly separating content from presentation. All Major Browsers (IE 6, Netscape 7, Opera 6) support CSS-2 (which includes Positioning). XHTML requires CSS for all presentation in its strict format. CSS-2 allows different style sheets to be employed for different media. –Change the way your page looks on a printer without changing the page.

Are the newer browsers truly compliant? Most Newer Browsers are compliant –IE6, NS7, IE5Mac, Opera 6, Konqueror (Linux), IBM Web Browser When writing to the standard, make sure you tell the browser to go into standards mode though. –In order to deal with both old tag soup written to old browser quirks and new standards-compliant pages, Mozilla (and Mozilla-based browsers, such as Netscape 6, Netscape 7, Chimera, Galeon and Beonex), Mac IE 5 and Windows IE 6 have two layout modes. In one mode the layout engine attempts to comply with W3C Recommendations. In the other mode the layout engine tries to mimic old browsers. In Mozilla these modes are known as “the Standards mode” and “the Quirks mode” respectively

How to force Browsers into Standards Mode Mozilla, Mac IE 5 and Windows IE 6 all use doctype sniffing in order to decide between the standards mode and the quirks mode. This means that the mode is picked based on the document type declaration (or the lack thereof) at the beginning of an HTML document. –Full list can be found at:

Standards Forcing DocType Declarations HTML 4.x Strict – HTML 4.01 Transitional – XHTML 1.0 Strict (no xml Declaration) – XHTML 1.0 Transitional (no xml Declaration) – Using an xml Declaration with XHTML will Force IE6 into Quirks Mode

Fusebox 4 and Accessibility The Fusebox philosophy encourages separation of business logic from presentation logic which is good. Fusebox 4 fully allows for separating presentation and content which are necessary for fully accessible and compliant web sites

Content Variables What they are: –A more flexible way of capturing discrete bits of content. –Allows for the same content to be served in a variety of layouts –Allows the architecture to think only about architecture and the designer to only think about design.

A More Flexible Way to Handle Layouts Content variables exist as an attribute to the command. All information that would be displayed from the fuseaction called by the command is captured into a contentvariable.

Content Variables Fuseactions called from, form submittals or url locations cannot be placed into a content variable. However, the fuseactions called within these locations can.

Content Variables Content Variables can be appended to have more than one fuseaction place their display within the same content variable.

Benefits of Content Variables with Layouts Allows for multiple layouts with the same content. Web Standards layouts for Web Standards and Speech Browsers Tabled Layout for older Browsers. SEPARATE AND EQUAL.

A Portal Layout Portal Applications typically have more than one set of information being displayed at one time. –Typically this means that more than one fuseaction is being called to supply that information. Portals are a great example of using Content Variables.

Content Variables and Web Standards Content Variables are a great way to implement web standards Since content variables contain discrete information, they are simple in layouts. Also makes it very simple for web designers to work with as well. ACME ACCOUNTING SYSTEM #mainmenu# #sidenav# #maincontent#

Layouts at the Fuseaction Level Fuseaction level layouts allow you to call a layout as a <do command at the end of the fuse queue. Allows for granular formatting of specific objects.

Fuseaction Layouts

Fuseaction Layouts

Fuseaction Layouts Considerations for fuseaction layouts –Will still apply any other application or circuit level layouts called. –When using Fuseaction level layouts, make sure they are being applied properly. Forgetting a layout might cause your information not to be displayed if you are using content variables with it.

Breadcrumb Trail Breadcrumb navigation displays the current page's context within the site structure. The term "breadcrumb" is as in "Hansel and Gretel" - leaving a trail of crumbs in order to find their way back out of the forest. The benefit of this approach is that it makes obvious the ways in which information has been grouped and allows the user both to move between these groupings and understand the information structure.

Breadcrumb Trail The Breadcrumb trail will use a mixture of layouts to implement. General Header and Footer will be implemented by the Application level layouts Content Variables will be used to handle the rest along with. Dynamic Side menus will be handled at the circuit level. Breadcrumbs will be applied at all levels into a content variable.

Breadcrumb Trail Create a default variable “breadcrumb” in globals.cfm (called via a plugin) – For each circuit level, create a breadcrumb for the circuit at the –Use Call Super to go up the parent path.

Breadcrumb Trail For each fuseaction to be breadtrailed. –Set the breadcrumb trail.

Breadcrumb Trail Use the <postfuseaction to append the main fuseaction to the list variable.

Breadcrumb Trail In the fusebox.xml add a call to a breadcrumb action in the layouts circuit. Which calls

Breadcrumb Trail This action fuse actually puts the breadcrumb together into a content variable for display. <cfset breadcrumbtrail = breadcrumbtrail & ' #GetToken(aCrumb,1,'|')# '>

QA