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

Working with stacks


A stack is basically a collection of blocks you can reuse in multiple places on your site. Let's start by creating a new stack. You'll easily figure out the idea behind it with this little example! You can use the intelligent search bar at the top which you can focus by using the Tab key. Type Stack and concrete5 will search for all of the choices containing the keyword stack:

Click on the first entry, Stacks. In the next screen, type the name of the new stack, for example, Contact Data in the Name field. Hit the Add button, click on the newly created stack, and you'll be forwarded to the following screen:

In this screen, you can add new blocks by clicking on the Add Block button. Adding new blocks works the same way as always from this point. Once you've added all of the blocks you want, you'll need to confirm the changes you've made to our stack by clicking on the Approve Changes button, seen here:

Click on the Return to Website link at the top-left corner to navigate back to your home page. Go to the page where you want to insert the Contact Data stack, click on the Add To Sidebar link, and select the Add Stack menu item, as shown in the following screenshot:

Select the Contact Data stack we created before and you'll see a new dialog. In this dialog, you either insert the entire stack with all of the blocks, or just a single block from the stack. This is, of course, only useful if you actually have more than one block in your stack. In our case, select the Add Stack menu item to insert the stack with all blocks.

If you click on the stack again, you'll see a menu which is slightly different from the menu you see when you click on a block. The first item is called Manage Stack Contents instead of edit. If you click on this item, you'll be redirected to the dashboard page where you've previously managed your stack. Here you can add, edit, or remove blocks, and once you approve the changes, the update is visible on all of the pages where this stack has been added.

If you need more detailed instructions, go to the following page and you'll see a video as well as some screenshots:

http://www.concrete5.org/documentation/using-concrete5/in-page-editing/block-areas/stacks/