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

Publishing changes and managing versions


Once you've updated your content, you probably want to publish the changes at some point. You can leave the edited page without publishing it, keeping a draft version of the changes, but let's look at how you can make the changes available to the public. The toolbar at the top changes a bit when you're editing a page. The Edit button changes its text to Editing and a few elements in the menu underneath it change as well to make it possible to publish the changes:

The button that jumps out at your eyes the quickest is the one you'll probably use the most in this situation. The Publish My Edits button will automatically make all of your changes available to the public. If you want to keep track of your changes, you can also replace the default text Version 2 with a comment of your own. It's just a comment which will be listed when looking at previous versions, it doesn't have any functionality connected to it.

The other two buttons that are only visible in the edit mode are:

  • Discard My Edits: Made a mistake and don't want to save the changes at all? Use this button.

  • Preview My Edits: This button will save the changes but not approve them. Logged in editors can see and choose to continue editing, but normal users only see the approved version.

If you accidentally published a change you didn't want to release yet, don't worry, there's an easy way back! In the menu shown in the preceding screenshot, click on the Versions link and a new dialog will show up:

There are four buttons available:

  • 1: This is the compare versions button. If you select two or more page versions, this button will become active and shows you every selected version within a tab in a new dialog.

  • 2: This is the approve button. Select a version which isn't approved at the moment (including older versions) , and this button will be active, allowing you to change the publicly-visible page version. Thanks to this button, there's always an easy way back.

  • 3: This is the copy version button. Select one version and this button will make it possible to copy an existing version into a new one.

  • 4: This is the delete button. Select a page version that isn't approved at the moment and this button allows you to delete the selected version.