Book Image

Creating Concrete5 Themes

Book Image

Creating Concrete5 Themes

Overview of this book

Creating a concrete5 theme isn't complicated if there’s already a HTML document. There are only very few PHP functions you’ll have to add, but those are powerful and give you a lot of freedom. As you’ll learn to create mobile ready themes, you’ll start to see that there’s almost no limit in what you can do."Creating Concrete5 Themes" is a practical, hands-on guide that provides you with a number of examples that will teach you how to create powerful concrete5 themes, change the look of content block elements, and even make your site ready for mobile devices."Creating Concrete5 Themes" starts with a few words about the editing concept and architecture of concrete5 and then continues with the creation of a basic theme which gets extended with more and more elements until the theme is mobile ready.You will learn where to find the information necessary to get your own concrete5 site and then get a quick introduction to understand the idea of the in-site editing concept. We’ll then create a theme which is extended with features and more details as we progress. You’ll also see some examples to show you the process of overriding elements from the core without losing the ability to upgrade concrete5 in the future. Once we’ve customized every element in concrete5 to build a complete theme, we’ll have a look at responsive techniques to make your site ready for small screen devices such as mobile phones and tablets.  
Table of Contents (13 chapters)
Creating concrete5 Themes
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Preface

The Creating concrete5 Themes book contains everything you'll need to use your experience with HTML, CSS, and PHP, to build custom themes for concrete5. You'll also get a first glimpse at more advanced features as well as a few examples showing you how to customize parts of the concrete5 core to uncover the power of this CMS.

What this book covers

Chapter 1, Getting Started, describes a few words about the requirements of concrete5 as well as instructions needed to get an understanding to edit content using concrete5.

Chapter 2, Architecture of concrete5, helps you understand a bit more about the internals of concrete5 for those who want to understand how things are working in concrete5.

Chapter 3, Creating Your First Theme, describes the practical part where you'll create your own theme.

Chapter 4, Styling Single Page, helps you learn how to change the look of existing pages such as the login or 404 page.

Chapter 5, Styling the Block Output, covers everything you need to know to change the output of the block elements, the actual content of a concrete5 site.

Chapter 6, Responsive Themes, covers a brief look into responsive techniques and how they can be integrated in concrete5.

What you need for this book

You'll need an environment where you can install and play around with concrete5. This can either be a Windows, Mac, or Linux computer with Apache, PHP, and MySQL, or even a remote server in combination with a text editor such as Notepad++ and a tool to upload files such as FileZilla.

Who this book is for

You don't need to be an experienced programmer to understand this book, but you should have an understanding of web technologies such as HTML and CSS. Some experience with a programming language, preferably PHP, is highly recommended, but not needed if you are a quick learner with a good understanding of computers.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "The value of $pkg has to match the package directory and theme_book in PageTheme::add('theme_book', $pkg); has to match the name of the theme directory in themes."

A block of code is set as follows:

<?php
$mh = Loader::helper('mail');
$mh->setSubject('Hello lovely World');
$mh->setBody('Have a great day!');
$mh->to('[email protected]', 'The World');
$mh->from('[email protected]');
$mh->sendMail();

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

    <div class="span9">
            <?php
            $areaMain = new Area('Main');
            $areaMain->display($c);
            ?>                  
    </div>

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "There are some links such as Add Image which are concrete5 specific."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.