concrete5 Beginner's Guide - Second Edition


concrete5 Beginner's Guide - Second Edition
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  •  Create your own theme to customize the look of your site.
  •  Create new blocks from scratch to learn how to embed new content elements in your concrete5 site using HTML, CSS, PHP and JavaScript.
  •  Wrap everything in a package for easy handling and distribution of your add-ons.
  •  Learn how to install and set up a concrete5 website.
  •  Build block templates to change the output of blocks to suit your needs.

Book Details

Language : English
Paperback : 324 pages [ 235mm x 191mm ]
Release Date : April 2013
ISBN : 1782169318
ISBN 13 : 9781782169314
Author(s) : Remo Laubacher
Topics and Technologies : All Books, CMS and eCommerce, Beginner's Guides, Content Management (CMS), Open Source, Web Development

Table of Contents

Preface
Chapter 1: Installing concrete5
Chapter 2: Working with concrete5
Chapter 3: Managing Permissions
Chapter 4: Managing Add-ons
Chapter 5: Creating Your Own Theme
Chapter 6: Customizing Block Layouts
Chapter 7: Adding Site Navigation
Chapter 8: Creating your Own Add-on Block
Chapter 9: Everything in a Package
Chapter 10: Dashboard Extensions
Chapter 11: Deployment and Configuration
Pop Quiz Answers
Index
  • Chapter 1: Installing concrete5
    • Preparing for installation
      • Web browser
      • Text editor
      • Archive utility
      • FTP client
    • Installing Bitnami
    • Time for action – installing Bitnami WAMP stack
    • Downloading concrete5
    • Time for action – downloading the latest version
    • Creating an empty MySQL database
    • Time for action – creating a MySQL database
    • Installing concrete5
    • Time for action – installing concrete5
      • The configuration file
      • Disabling caching
  • Time for action – disabling caching
    • Enabling pretty URLs
  • Time for action – enabling pretty URLs
    • File and directory structure of concrete5
    • Dispatcher process
  • Summary
    • Chapter 2: Working with concrete5
      • Getting familiar with concrete5
      • Time for action – logging in to concrete5
      • Adding new blocks
      • Time for action – adding new blocks
      • Time for action – editing existing blocks
      • Time for action – exiting edit mode
      • Working with the dashboard
      • Time for action – changing the site's name
      • Adding more pages
      • Time for action – adding pages to create a news section
      • Time for action – adding blocks to a new page
      • Managing page defaults
      • Time for action – adding default blocks to a page type
        • Adding blocks to existing pages
      • Time for action – adding blocks to existing pages
      • Moving and sorting pages
      • Time for action – moving and sorting your pages
      • Splitting content into columns
      • Time for action – creating a multi-column layout
      • Copying blocks using the clipboard
      • Time for action – copying the block using the clipboard
      • Working with stacks
      • Time for action – working with stacks
      • Styling with design and CSS
      • Time for action – styling your blocks
      • Summary
      • Time for action – adding users
        • Working with user attributes
      • Granting sitemap and file manager permissions
      • Time for action – assigning sitemap permissions
      • Time for action – granting file manager permissions
        • Granting page editing permissions
      • Time for action – granting edit access
        • Managing edit access on a page by page basis
      • Creating a protected website section
      • Time for action – creating a protected website
        • Granting partial dashboard access
      • Time for action – granting partial dashboard access
        • Restricting block access
      • Time for action – restricting access to blocks
      • Working with the advanced permission mode
      • Time for action – activating the advanced permission mode
        • Managing advanced page permissions
      • Time for action – removing permissions to change permissions
        • Managing area permissions
        • Managing block permissions
        • Managing subpage permissions
      • Time for action – setting subpage permissions
      • Summary
        • Chapter 4: Managing Add-ons
          • Introduction to add-ons
            • Installing add-ons from the marketplace
          • Time for action – installing an add-on
          • Time for action – uninstalling an add-on
            • Manually installing an add-on
          • Time for action – installing an add-on manually
          • Working with theme add-ons
            • Parts of a theme
            • Theme file structure
          • Working with block add-ons
            • Block structure
          • Packages
          • Summary
          • Chapter 5: Creating Your Own Theme
            • Starting with a new layout
              • The HTML code
              • CSS rules
            • Converting HTML and CSS to a concrete5 theme
            • Time for action – creating the concrete5 theme header
            • Time for action – creating the concrete5 theme footer
            • Time for action – creating a page template
            • Time for action – creating more page templates
            • Installing your theme
            • Time for action – installing theme
            • PHP constants and functions
            • Time for action – getting a list of available constants
            • Time for action – listing all available functions
            • Time for action – checking for edit mode
            • Time for action – hiding content from anonymous visitors
            • Time for action – restricting numbers of blocks per area
            • Time for action – inserting a block wrapper in an area
            • Working with page attributes
            • Time for action – using attributes to set background picture
            • Time for action – accessing attribute data from a template
            • Inserting blocks in templates
            • Time for action – replacing the header area with a template block
            • Time for action – finding autonav block properties
            • Time for action – specifying block templates in an area
            • Applying a theme to a single page
            • Time for action – creating a single page layout
            • Time for action – adding variables to handle login errors
            • Creating customizable themes
            • Time for action – creating a customizable theme
            • Summary
            • Chapter 6: Customizing Block Layouts
              • Custom templates to modify a block layout
              • Thumbnails in a page list
              • Time for action – adding thumbnails to a page list
              • Time for action – restricting thumbnails to a custom dimension
              • Block template folder
              • Time for action – creating a template folder
              • Picture pop-ups in a content block
              • Time for action – building a lightbox gallery
              • Adding a Gravatar picture in the guestbook
              • Time for action – adding a Gravatar picture to the guestbook
              • Avoiding duplicate code in a custom template
              • Time for action – including an existing template
              • Transforming a slideshow into a gallery
              • Time for action – creating a gallery template for a slideshow
              • Time for action – adding a slideshow gallery
              • Slideshow using file attributes
              • Time for action – adding file attributes to our slideshow
              • Time for action – using file attributes in the gallery
              • Using advanced tooltips in the content block
              • Time for action – creating advanced tooltips
              • Summary
              • Chapter 7: Adding Site Navigation
                • Introducing the autonav block
                  • Preparation
                • Time for action – undoing autonav block integration
                  • Autonav options
                    • Autonav page structure
                    • Page order
                    • Example 1 – showing all pages
                    • Example 2 – showing relevant subpages
                    • Example 3 – showing relevant subpages starting from the top
                  • Autonav output
                • Adding navigation images
                • Time for action – creating page attributes for navigation pictures
                • Time for action – creating a block picture navigation template
                • Adding a CSS3 hover effect
                • Time for action – creating a CSS3 transition autonav template
                • Building a drop-down navigation
                • Time for action – creating a SooperFish template
                • Sliding mobile navigation
                • Time for action – building a mobile navigation
                • Summary
                • Chapter 8: Creating your Own Add-on Block
                  • Building a product information block
                    • Steps for creating a block
                      • Adding the database schema
                  • Time for action – creating the database structure
                  • Time for action – creating the block controller
                  • Time for action – creating the editing interface
                  • Time for action – printing block output
                  • Time for action – installing a block
                    • Checking for mandatory fields
                  • Time for action – adding a check for mandatory fields
                    • Adding product categories
                  • Time for action – adding product categories
                  • Building a product list
                    • Handling multiple block versions
                  • Time for action – handling multiple block versions
                    • Creating a product list block
                  • Time for action – creating the product list block
                  • Creating a picture magnifier
                  • Time for action – creating the picture magnifier block
                  • Creating a PDF-generating block
                  • Time for action – creating the PDF generation block
                    • Using generate_pdf.php
                  • Creating a simple gallery
                  • Time for action – creating the simple gallery block
                  • Summary
                  • Chapter 9: Everything in a Package
                    • What's a package?
                      • Package structure
                      • The package controller
                    • Time for action – creating the package controller
                    • Moving templates into a package
                    • Time for action – moving templates into a package
                    • Moving a theme and blocks into a package
                    • Time for action – uninstalling blocks
                    • Time for action – moving the jQZoom block into a package
                    • Time for action – moving the PDF block into a package
                    • Hooking into core events
                      • Event types
                      • Extending an event
                    • Time for action – hooking into an event from a package
                    • Working with maintenance tasks and jobs
                    • Time for action – executing concrete5 jobs periodically
                      • Creating a new job
                    • Time for action – creating a job to check for broken links
                    • Injecting header items
                      • Adding tooltips for every title tag
                    • Time for action – creating global tooltips
                      • JavaScript browser fixes
                    • Time for action – integrating a CSS fix in a package
                    • Summary
                    • Chapter 10: Dashboard Extensions
                      • Working with the MVC pattern
                      • Adding the broken link interface
                      • Time for action – creating the broken links dashboard extension
                        • Moving database access into a model
                      • Time for action – creating a package model
                        • Working with multiple controller methods
                      • Time for action – adding a second controller method
                      • Embedding a file editor in the dashboard
                      • Time for action – creating the file editor add-on
                        • Controllers without logic
                      • Summary
                      • Chapter 11: Deployment and Configuration
                        • Deploying a concrete5 site
                          • Preparations for deployment
                        • Time for action – disabling pretty URLs and the cache
                          • Transferring MySQL databases
                        • Time for action – transferring MySQL databases
                          • Transferring files to the server
                        • Time for action – transferring files to the server
                        • Time for action – updating the configuration file
                          • Setting file permissions
                        • Time for action – setting file permissions
                        • Updating production configuration
                          • Updating the configuration file
                          • Base URL redirection
                          • Changing the concrete5 language
                        • Time for action – installing a translation file
                          • Improving performance with a cache
                        • Time for action – getting PHP information
                          • Caching with APC
                          • Measuring site performance
                      • Time for action – measuring site performance
                      • Where to go next
                      • Summary

                        Remo Laubacher

                        Remo Laubacher grew up in Central Switzerland in a small village surrounded by mountains and natural beauty. He started working with computers a long time ago and then, after various computer-related projects, focused on ERP and Oracle development. After completing his BSc in Business Administration, Remo became a partner at Ortic, his ERP and Oracle business, as well as a partner at Mesch web consulting and design GmbH. At Mesch—where he's responsible for all development-related topics—he discovered concrete5 as the perfect tool for their web-related projects and has since become a key member of the concrete5 community. You can find his latest publications on http://www.codeblog.ch/.

                        He has also authored concrete5 Beginner's Guide and Creating concrete5 Themes.

                        Code Downloads

                        Download the code and support files for this book.


                        Submit Errata

                        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                        Errata

                        - 1 submitted: last submission 28 May 2013

                        Errata type: Typo | Page number: 5 (About the Reviewers)

                        The Mesuva website can be found at https://www.mesuva.com.au and Ryan can be contacted through it.

                        Should be

                        The Mesuva website can be found at http://www.mesuva.com.au and Ryan can be contacted through it.

                        Sample chapters

                        You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                        Frequently bought together

                        concrete5 Beginner's Guide - Second Edition +    Getting Started with Eclipse Juno =
                        50% Off
                        the second eBook
                        Price for both: €30.90

                        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                        What you will learn from this book

                        •  How to install concrete5
                        •  Understand the configuration of concrete5
                        •  What you need to know to build your own theme
                        •  How you can turn the slideshow block into a gallery
                        •  How to add a new dashboard page
                        •  How to create new blocks from scratch
                        •  How to put different elements into a package for easy handling and distribution
                        •  What you need to know to use concrete5 in a different language
                        •  How to deploy a local site to a production server

                        In Detail

                        concrete5 is an open source content management system (CMS) for publishing content on the World Wide Web and intranets. concrete5 is designed for ease of use, and for users with limited technical skills. It enables users to edit site content directly from the page. It provides version management for every page and allows users to edit images through an embedded editor on the page.

                        concrete5 Beginner’s Guide shows you everything you need to get your own site up and running in no time. You will then learn how to change the look of it before you find out all you need to add custom functionality to concrete5.

                        concrete5 Beginner’s Guide starts with installation, then you customize the look and feel and continue to add your own functionality. After you’ve installed and configured your own concrete5 site, we’ll have a closer look at themes and integrate a simple layout into concrete5. Afterwards, we’re going to build a block from scratch which you can use to manage a news section. We’re also going to add a button to our site which can be used to create a PDF document on the fly. This book also covers some examples that show you how to integrate an existing jQuery plugin.

                        concrete5 Beginner’s Guide is a book for developers looking to get started with concrete5 in order to create great websites and applications.

                        Approach

                        This is a beginner's guide, which takes a clear, step-by-step approach to guide you through the process of creating and adding functionality to your site.

                        Who this book is for

                        This book is ideal for developers experienced with HTML and CSS and possibly PHP as well as JavaScript, who would like to build their first site with concrete5. Some knowledge of PHP, MySQL, or HTML would be useful, but no experience with concrete5 is expected.

                        Code Download and Errata
                        Packt Anytime, Anywhere
                        Register Books
                        Print Upgrades
                        eBook Downloads
                        Video Support
                        Contact Us
                        Awards Voting Nominations Previous Winners
                        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                        Resources
                        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software