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

Start working with concrete5


Once you have a running concrete5 site, you can log in to your site by clicking on the Sign In to Edit this Site link at the bottom of the page. If you already installed a different theme, you might not find that link, as some people remove it to keep their layout as clean as possible. If that's the case, you can use the following URL, or if that's not working either, the second URL:

  • http://www.your-site.com/login/

  • http://www.your-site.com/index.php/login/

Tip

Keeping URLs nice and clean

The two preceding links point to the same page but one has an ugly index.php in it. That's because all requests are redirected through that file. Luckily, it's not difficult to get rid of that. concrete5 can make use of mod_rewrite that makes it possible to remove parts of the URL.

In the dashboard, enter pretty in the little search bar at the top of the page and select the Pretty URLs item. On the screen which appears, check the only checkbox and save the changes. This is shown in the following screenshot:

After you're logged in, you'll see an almost identical view of your site, there's just one major change. Now there's a toolbar at the top, allowing you to access the dashboard as well as the editing options related to the current page: