Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
MODx Web Development - Second Edition

You're reading from  MODx Web Development - Second Edition

Product type Book
Published in Feb 2011
Publisher Packt
ISBN-13 9781849513487
Pages 288 pages
Edition 1st Edition
Languages
Toc

Table of Contents (19) Chapters close

Credits
About the Author
About the Reviewers
1. www.PacktPub.com
2. Preface
1. What is MODx? 2. Getting Started 3. MODx Basics 4. Templating 5. Authentication and Authorization 6. Content Aggregation 7. Creating Lists 8. Snippets 9. PHx 10. Simple Recipes 11. Creating Snippets 12. SEO, Deployment, and Security 13. Plugins and Modules 14. MODx Revolution

Creating a new template and giving it a category


To start with, let us create a simple template that has a content area, a header, and a footer.

The HTML and CSS code for a structure like that is discussed in this section.

HTML

The following HTML creates a header, body, and footer layout. The content div is where the content of a resource will be displayed.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Learning MODx</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859- 1" />
<link rel="stylesheet" type="text/css" href="assets/templates/learningMODx/style.css" />
</head>
<body>
<div id="banner">
<h1>Learning MODx</h1>
</div>
<div id="wrapper">
<div id="container">
<div id="content">
[*#content*] <!-- This is the only line that is not HTML.It is explained...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}