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

Managing files


A site without any pictures or files could look a bit boring, but luckily we have plenty of options to change that. If you navigate to the dashboard, you can see a File Manager link which will forward you to the default file manager screen in concrete5:

If you're used to working with another CMS, you'll probably have worked with a hierarchical folder structure known from most operating systems. In concrete5, things work a bit differently. You don't have folders, but rather sets in which you can place files. You can build a completely flat structure, but try to think about the sets you'll need before you have tons of files.

Unlike folders, a single file can be a part of several sets. This might sound a bit unusual, but once you're used to it, you'll probably realize that this can have advantages.

Uploading files

Let's have a look at how the usual process to upload a new file works. Right at the beginning we have two options. If you want to upload several files, you might want to use the Upload Multiple button where you can select as many files as you want and upload them in one bulk operation.

We'll use the traditional single file upload. Start by clicking on the Choose File button and select the file you want to upload from your local hard drive. After that, you only need to click on the Upload File button and you'll see another dialog where you can update the metadata of your new file:

If you click on one of the attributes such as Title, you'll see an input field where you can update the attribute value. Click on the icon on the right-hand side to confirm the changes to the value.

There are more attributes in the second tab, Other Properties. They all work the same way. Click on the attribute name, update the value, and confirm the change by clicking on the icon.

In the last tab Sets, you have the option to assign your new file to an existing set as well as a new set which you can create there as well. If you upload multiple files at once, you'll see the same dialog. However, if you assign a set after the upload process is finished, you'll assign that set to all of the files. This is especially handy if you upload an entire gallery in one step. Just upload all of the files, assign the set with one action, and pull all of the files from that set into a slideshow.