Building Websites with OpenCms
eBook - ePub

Building Websites with OpenCms

Matt Butcher

Share book
  1. 276 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Building Websites with OpenCms

Matt Butcher

Book details
Book preview
Table of contents
Citations

About This Book

This book takes you through the process of creating content-rich websites and applications using OpenCms. Although powerful and flexible, OpenCms can be daunting on first approach, but its advanced features reward the investment in learning. This book exists to ease Java developers into getting the most from OpenCms. OpenCms OpenCms is a professional-level, open source Website Content Management System, with which you can create and manage complex websites. Based on Java and XML technology, it fits into almost any modern IT environment. With hard-won experience of the practical difficulties faced by developers working with OpenCms, this book is the embodiment of the author's expertise, and the perfect way to master the system. This book takes you through the process of creating content-rich websites and applications using OpenCms. Although powerful and flexible, OpenCms can be daunting on first approach, but its advanced features reward the investment in learning. This book exists to ease Java developers into getting the most from OpenCms. With hard-won experience of the practical difficulties faced by developers working with OpenCms, this book is the embodiment of the author's expertise, and the perfect way to master the system. This book was written for version 5.0 of OpenCms. Visit the Free Online Edition for Building Websites with OpenCms and learn more about the book, you can read through two full chapters, "The OpenCms Workplace", and "Creating an OpenCms Module" and discover what each chapter from this best selling book has in store. http://OpenCmsBook.PacktPub.com If you are a web developer new to OpenCms, or are an experienced OpenCms developer who is looking to get the most from the system, then this is the book for you. A working knowledge of Java, JSP, and XML is required to get the most from OpenCms, and from this book.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Building Websites with OpenCms an online PDF/ePUB?
Yes, you can access Building Websites with OpenCms by Matt Butcher in PDF and/or ePUB format, as well as other popular books in Informatik & Informationstechnologie. We have over one million books available in our catalogue for you to explore.

Information

Year
2004
ISBN
9781904811046

Building Websites with OpenCms

Matt Butcher


Table of Contents

Building Websites withOpenCms
Credits
About the Author
Introduction
What This Book Covers
What You Need for Using This Book
Conventions
Reader Feedback
Customer Support
Downloading the Example Code for the Book
Errata
Questions
1. Introduction to OpenCms
What Is a Content Management System?
Three Essential Components
What Is OpenCms?
Features
History
The OpenCms Community
The Purpose of This Book
Technical Overview
The Web Server and Java Servlets
The Database
Pages, Templates, and Java Server Pages
Bringing it Together
Summary
2. Installing OpenCms
Prerequisites
Configuring the MySQL Database
MySQL on Linux
MySQL on Windows
Finishing the MySQL Setup
Configuring the Tomcat Servlet Engine
Linux Configuration
Windows Configuration
Configuring Encoding
Tuning the JVM
Installing the OpenCms WAR File
Configuring OpenCms to Use UTF-8
Running the Install Wizard
Advanced Setup Screens
Basic Setup Screens
Manually Configuring Settings
Configuring the Client
Mozilla-Based Browsers
Internet Explorer
Installation Troubleshooting
Character-Set Issues
Temp File Project ID Error
Restarting Tomcat versus Reloading OpenCms
Importing Workplace Screen Freezes
MySQL User/Password Changes
Finding More Installation Help
Summary
3. The OpenCms Workplace
A Tour of the OpenCms Workplace
The Toolbar
The Explorer View
Creating and Editing Content
Creating a Folder
The WYSIWYG Editor
The Sourcecode Editor
Publishing Your Changes
Versioning
Administration
Project Management
User Management
Database Management
Static Export
Clear Element Cache
Resource Type Management
Properties Management
Gallery Management Tools
Link Checking
Module Management
Synchronization Management
Scheduled Tasks
Log File Viewer
Channels
Flex Cache Administration
Workflow
Creating and Managing Tasks
Workflow Management Strategies
Use Projects to Manage Content Areas
Use Group Hierarchies for Inherited Permissions
Track Work with Tasks
Keeping a Trail
Modules
Obtaining Official OpenCms Modules
The Help System Modules
Importing OpenCms Modules
Where Did All that Module Data Go?
Online Documentation Modules
Other Modules
Summary
4. Customizing the Site
Overview of Creating a Site
Working with Templates and Tags
Creating a Site Module for Templates
Creating a New Template
The JSP Template
Associating a Page with the New Template
JSP Tag Libraries and Scriptlets
JSP Tag Libraries
The OpenCms Tag Library
The JSP Template
Creating a JSP Document
JSP Scriptlets
Basic Scriptlets
The CmsJspActionElement Object
OpenCms Navigation
Getting the Contents of Other Files
Advanced Scriptlet Programming
A Few Things to Watch Out For
The File System
Redirecting and Forwarding
Java Synchronization
Dynamic Content and Publishing
Structuring Code and Content
The FlexCache
Tuning the FlexCache
FlexCache JSP Directives
Absolute Directives
User Directives
Time-Sensitive Directives
URL Directives
Controlling the Cache with URL Parameters
Using FlexCache
Internationalization
Modules
Creating ResourceBundles
JSPs and ResourceBundles
Summary
5. The OpenCms System Architecture
Resource Types
Coding a New Resource Type
Building the Resource Type
Building with Ant
Editing the Properties Files
Adding a Restype
Menu Items
Rule Keys
Adding Properties for the Resource Type
Editing the OpenCms Registry
Using the New Resource Type
Content Definitions
The Steps for Creating a Content Definition
Important Methods
The Virtual File System
How Page Types Are Stored in the VFS
Resource Names and the VFS
Reading from and Writing to the VFS
Class Structure
com.opencms.boot
com.opencms.core
com.opencms.dbpool
com.opencms.defaults
com.opencms.defaults.master
com.opencms.file
com.opencms.file.<database>
com.opencms.file.utils
com.opencms.flex
com.opencms.flex.cache
com.opencms.flex.jsp
com.opencms.flex.util
com.opencms.htmlconverter
com.opencms.launcher
com.opencms.linkmanagement
com.opencms.report
com.opencms.template
com.opencms.template.cache
com.opencms.util
com.opencms.workplace
Summary
6. Creating an OpenCms Module
Using Modules
The Site Module
Creating a Module
Navigating the New Module
Custom Classes and Libraries
Adding Libraries
Adding Content
Creating a Simple XML Document
A Place for XSLT Templates
JSP Elements
Adding a Scheduled Task
The BatchTransformer Class
The CronBatchTransformer Class
Scheduling a Task
How an I_CmsCronJob Is Executed
Managing the Module
Administrate
The Dependency Screen
The Module Properties Screen
Properties
Accessing Module Parameters from JSP Pages
Exporting and Deploying the Module
Summary
7. Advanced Modules
Adding an Administration Point
Creating Icons
Adding a Properties File
Creating Administration Point Folders
Adding Additional Properties
Creating an Administration JSP
The JSP Code
The Administration Point in Action
XML Templates
How XML Templates Work
Editing XML Templates
The Structure of the Workplace XML Templates
The action Folder
The administration Folder
The help and locales Folders
The resources Folder
The restypes Folder
The scripts Folder
The templates Folder
The /system/login Folder
Creating a Custom Launcher
The Basic Idea
Implementing a Launcher
Editing the Registry
Testing the Launcher
Other Considerations
Creating XML-Template-Based Launchers
Creating Resource Loaders
Master Modules
Summary
8. Deploying an OpenCms Solution
Serving Static versus Dynamic Content
Published Resources
Static Serving
Dynamic Serving
The Export Property
Changing Export Settings
Static Export
Configuring for Static Export
Export Path Settings
Export URL Settings
Using Relative Links
Running a Static Export
Touching All Files in the VFS
Web User Authentication and Management
How OpenCms Handles Authentication
The Guest User
CMS Users
Web Users
Creating Web Users
The create_webuser.jsp Scriptlet
Authenticating Web Users
Using the Authentication JSP
Restricting Access through a Template
Backup and Recovery
Backing Up the Database
Backups from Within OpenCms
Performing an OpenCms Database Export
Backing Up Large Sites
The Backup Files
Importing an Export Zip File
Users and Groups
Resources
Performance Tuning
Database Tuning
MySQL
Oracle
SQL Server
OpenCms Tuning
FlexCache
Page Streaming
Efficient Coding
Other Resources
Summary
A. Building OpenCms from Source
What You Will Need
Getting the OpenCms Source
Checking Out the Source from CVS
Building OpenCms with Ant
Generating Javadocs
Summary
B. Using the OpenCms Lucene Search Module
Searching Technologies and OpenCms
About the Op...

Table of contents