Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Apache Roller 4.0 - Beginner's Guide

You're reading from   Apache Roller 4.0 - Beginner's Guide A comprehensive, step-by-step guide on how to set up, customize, and market your blog using Apache Roller

Arrow left icon
Product type Paperback
Published in Dec 2009
Publisher Packt
ISBN-13 9781847199508
Length 388 pages
Edition 1st Edition
Concepts
Arrow right icon
Toc

Table of Contents (16) Chapters Close

Apache Roller 4.0
Credits
Foreword
About the Author
About the Reviewers
1. Preface
1. An Introduction to Weblogs FREE CHAPTER 2. Installing Roller on Windows 3. Installing Roller on Linux 4. How to Start Working with Roller 5. Spicing Up Your Blog 6. Roller Themes and Blog Promotion 7. Working with Templates 8. Comments and Trackbacks Pop Quiz Answers
Index

Time for action — creating your first template


In this exercise, you'll learn to create and edit your first custom template via Roller's admin interface:

  1. Open your web browser, log into Roller, and go to the Templates page, under the Design tab:

  2. On the Add a new template panel, type mytemplate in the Name field, leave the default custom value in the Action field, and click on the Add button:

  3. The mytemplate template you've just created will show up in the templates list:

  4. Now click on the mytemplate link under the Name field, to open the mytemplate file for editing:

  5. Leave the mytemplate value for the Name field, type mytemplate in the Link field, and type My First Template in Apache Roller! in the Description field:

  6. Then replace the <html><body></body></html> line with the following HTML code:

    <html> <body>
    Welcome to my blog, <b>$model.weblog.name</b> </br>
    This is my first template </br>
    My weblog's absolute URL is: <b>$url.absoluteSite...
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 $19.99/month. Cancel anytime
Banner background image