Themes & Layout Tutorial Copyright © 2000-2006 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.

Slides:



Advertisements
Similar presentations
Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Advertisements

Struts Portlet Adding an Action Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
2.744 Dreamweaver Tutorial Sangmok Han Feb 24, 2010.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Getting an account with WordPress.com Open your web browser ( mozilla firefox, internet explorer, opera, etc.,)
Introduction to Liferay Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
Basic Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
JSF Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Using HTML to Create Tables in Web pages Connie Lindsey November 2005.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Creating a Web Page HTML, FrontPage, Word, Composer.
® IBM Software Group © 2006 IBM Corporation Creating JSF/EGL Template Pages This section describes how to create.JTPL (Java Template Pages) using the Page.
Getting Started with Dreamweaver
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
End User Administration (in context of Liferay CMS) Copyright © 2006 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or.
© 2012 Boise State University1 WordPress Training February 14, 2013.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
Ext Environment Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Using Dreamweaver. Slide 1 Dreamweaver has 2 screens that do different things The Document window where you create your WebPages The Site window where.
INTRODUCTION TO DREAMWEAVER 8. What we already know…  Design basics  Contrast  Repetition  Alignment  Repetition  HTML.
CA Professional Web Site Development Class 23 - CSS Positioning, Image Replacement & Print Styles.
Dreamweaver – Setting up a Site and Page Layouts Web Design Section 7-2 Part or all of this lesson was adapted from the University of Washington’s “Web.
Web Technologies Website Development Trade & Industrial Education
CSS Sprites. What are sprites? In the early days of video games, memory for graphics was very low. So to make things load quickly and make graphics look.
© 2012 Boise State University1 WordPress Training February 14, 2013.
Creating Effective School and PTA Websites Sam Farnsworth Utah PTA Technology Specialist
Struts Portlet Redirect Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Website Development with Dreamweaver
Ext Environment Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Web Site Design Marion Setton
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Basic Setup Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Nickelodeon – Blogs User Guide. 1. Introduction The admin tool allows you to create and publish blog posts easily and efficiently along with managing.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. word 2010 Chapter 3 Formatting Documents.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
Sports Website Creation. In this project you will design and produce your own website.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
LDAP Authentication Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
CHAPTER 5 Working with Data Tables and Inline Frames.
Content Management System Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
How To Design Your Own Webpage Created Especially For You By: Amanda E. Stricklin.
Web Design-Lecture3-QN-2003 Web Design Enhancing a Website.
Web Design Part I. Click Menu Site to create a new site root.
Updated on: September 4, 2010 CIS67 Foundations for Creating Web Pages Professor Al Fichera.
JSP Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Creating Google Sites Laura Assem, Director of Technology.
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
Basic Portlet Copyright © 2000 – 2007 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
HTML and Dreamweaver November 11th. Agenda Box Model Displaying and positioning elements – Padding – Margin – Float – Display – Position HTML Demo.
Dreamweaver – Setting up a Site and Page Layouts Web Design Section 7-2 Part or all of this lesson was adapted from the University of Washington’s “Web.
Distribution Statement A: Unlimited Distribution Introduction to Microsoft PPT.
From Template To Online Business Quick Build, Quick Delivery.
Getting Started with Dreamweaver
Getting an account with WordPress.com
Computer Fundamentals 1
ClubRunner Tutorial Website Designer.
Getting Started with Dreamweaver
Consult America Technology Consulting Services
Creating your first website
Animated PowerPoint Template
Presentation transcript:

Themes & Layout Tutorial Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission from Liferay, Inc.

Objectives 1.Customize your own Liferay Theme a.Introduction to Liferay Themes b.Deploy a Liferay Theme c.Modify example theme 2.Customize your own Liferay Layout a.Create a custom 2-3 layout -(2-3 = 2 column row on top of a 3 column row) b.Select different layout templates

Introduction to Liferay Themes With themes, you can quickly & completely redesign a website layout with a single war file. Lets see some examples: -Themes from Liferay Website: -Liferay.com -> downloads -> community themescommunity themes

Exercise 1 Change the Liferay Theme a. Startup Tomcat b. On the Liferay website “Page Settings” -> “Look and Feel” -> Select Theme

Portal Creating a theme can be a very time consuming process, depending on what exactly needs to be done. Step 1: Identify the major components Most themes contain the following elements: Banner Navigation Portlet area Some themes that are more graphically intensive also have a top, bottom, and left and right sides.

Identify the major components

Portlets Step 2: Identify the portlet areas –The next step is to identify your portlet areas. All portlets are composed of 12 pieces.

Look for all 12 pieces / images of the portlet Notice that some portlets have wide borders and some have thin, it all depends on how your portlet is supposed to look If there are shadows you need to incorporate the entire shadow in your image.

Exercise 2 Deploy your own “example.war” theme and change Liferay’s homepage to use that theme. This theme will help distinguish each of the pieces of the theme to give you practice in editing themes. Deploying your theme: 1. Startup Tomcat (if not already) 2. Copy “example.war” to your themes folder: C:\Projects\Training\ext\themes\example.war 3. “ant deploy” from your themes folder 4. Reload the page and select this theme

Step 3: Putting it all together Portlet Area You will need to cut your portlets up into 12 images like shown above, then populate the 12 portlet areas based on the images you cut up (set the height, width, and file name of each images) Hint: look for these lines css_cached.vm: ext\themes\example.war\html\themes\example\templates\css_cached.vm –. portlet-header-bar-middle –.portlet-header-bar-right –.portlet-header-bar-left –.portlet-corner-ul –.portlet-corner-ur –.portlet-corner-br –.portlet-corner-bl –.portlet-border-top –.portlet-border-left –.portlet-border-right –.portlet-border-bottom

Banner To build the banner you need to edit: css_cached.vm: ext\themes\example.war\html\themes\example\templates\css_cached.vm.layout-banner-left.layout-banner-middle.layout-banner-right Usually only the middle is required, but if the theme needs to stretch along the x axis you will need left and right as well.

Top, Bottom, Left, Right Top and Bottom Decorations css_cached.vm: ext\themes\example.war\html\themes\example\templates\css_cached.vm –#layout-top-decoration –#layout-corner-ul –#layout-corner-ur –#layout-bottom-decoration –#layout-corner-bl –#layout-corner-br Use these to build your top and bottom decorations Left and Right Sides css_cached.vm: ext\themes\example.war\html\themes\example\templates\css_cached.vm –#layout-box-left –#layout-box-right Look for these to edit the sides

Exercise 3 Modify the example.war theme to look like the one below

Helpful Notes: – border-left: 1px dotted black; – In Firefox’s web developer extensions press (CTRL-SHFT-F) for helpful HTML info Files to modify: – ext\themes\example.war\html\themes\example\templates\ css_cached.vm (css) portal_normal.vm (layout) – ext\themes\example.war\WEB-INF liferay-look-and-feel.xml ($colorScheme)

Content and Layout Why new layouts? –Variety is good –Not all sites are the same –Sometimes the defaults just don’t work for your needs How do we do it? –Layouttpl (Layout Template) makes this process so much easier!

Prepare the layouts folder In the EXT directory navigate to the layouttpl folder Create a folder called sample.war here > ext\layouttpl\sample.war In sample.war, create two folders: WEB-INF and html > ext\layouttpl\sample.war\WEB-INF > ext\layouttpl\sample.war\html We have now setup the basic folder structure for layouts. This is the process that must always be followed for new layouts

Preparing supporting files Inside the WEB-INF folder that was just created, create a file and name it liferay-layout-templates.xml > ext\layouttpl\sample.war\WEB-INF\ liferay-layout-templates.xml Now create one more file here, and call it web.xml > ext\layouttpl\sample.war\WEB-INF\ web.xml

liferay-layout-templates.xml ext\layouttpl\sample.war\WEB-INF\liferay-layout-templates.xml /html/layouttpl/custom/training.tpl

What did that do? Layout-templates is our root element, it tells Liferay that we are defining new layouts Custom tells Liferay that this is not a built in template, but something new Layout-template-id and name let Liferay know what to –Display in add content –Set as the unique id for this template Template-path tells Liferay where to find the template structure (tpl) file

web.xml ext\layouttpl\sample.war\WEB-INF\web.xml sample com.liferay.portal.kernel.servlet.LayoutTemplateContextListener

Preparing the tpl file In ext\layouttpl\sample.war\html, –create a “layouttpl” folder: Inside layouttpl, –create a “custom” folder: Inside custom, –create the file “training.tpl” ext\layouttpl\sample.war\html\layouttpl\custom\training.tpl

2-3 column layout code $processor.processColumn("column-1") $processor.processColumn("column-2") $processor.processColumn("column-3") $processor.processColumn("column-4") $processor.processColumn("column-5")

Deploy Layouts Navigate to ext/layouttpl Run ant deploy Open a web browser to Login For this example, let’s create a new page

Let’s add content! Click Add Content Select your Layout Template Click test and add (portlets with small width): Hello Laszlo Hello Velocity Hello World Your sample portlet

Finish it Refresh your page Drag all the portlets around to fill the five columns

Summary You should now know: –How to create a basic theme –How to create custom layouts –How to add new content pages –How to use change the layout template Things to practice –The more CSS and HTML you know, the better off you will be –Getting a theme just right takes time. Don’t lose faith, it is possible!

Congratulations! Congratulations! You’ve just modified your own theme! Login: Password: test To hot deploy JSR-168 compliant portlets, Liferay layout templates, or Liferay themes just drop your *.war files in C:/home/liferay/deploy Sample portlets can be found here: For more information on hot deploy, click here:

Revision History Scott Lee11/2/ Created & Updated slides from Brett’s Theme Docs & Layout Ppt Scott Lee11/10/ Fixed typos (Liferay-layout-templates.xml, tpl filepath) - added “helpful notes” for excercise