O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Website Development with PyroCMS

Book Description

When you have to build websites fast, PyroCMS is one of the most capable systems available to PHP developers. With this book you’ll gain deep insight into its features and techniques for practical application.

  • Learn how to build websites quickly, thus saving time.
  • Effectively use the advanced system features of PyroCMS
  • Acquire in-depth explanations on how to use data and themes in PyroCMS

In Detail

As web developers face constant pressure to build websites faster and smarter, many are turning to PyroCMS as a great way to use established programming patterns to create a website. PyroCMS is used by businesses and individuals all over the world and can easily be adopted for your next website project.

Through clear descriptions and code examples, we will show you how to quickly create system themes, manage data streams, and to get the most out of PyroCMS. The book also shows you how to create great websites using the simple methods inherent to PyroCMS. You will learn to make use of smart programming patterns and excellent template tools to build system add-ons and themes.

Leading you through all the major aspects of building a website using PyroCMS, you’ll start by learning how to install the system. The book will teach you the basic features of PyroCMS, like how to use the control panel, and will also provide quick tutorials on how to build system add-ons, system themes, custom page types, layouts, and to get the most out of PyroCMS. Finally, you will end by using the built-in Streams module to manage large sets of data for your site.

This is an excellent resource for developers who are looking to easily create & build a variety of websites and web-enabled applications.

Table of Contents

  1. Website Development with PyroCMS
    1. Table of Contents
    2. Website Development with PyroCMS
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Installing PyroCMS
      1. Getting started
        1. CodeIgniter
        2. HTTP web server
        3. MySQL
        4. PHP
        5. GD2
        6. cURL
      2. Downloading PyroCMS
      3. The difference between the Community and Professional versions of PyroCMS
        1. PyroStreams
      4. The installer
        1. Troubleshooting installation
      5. Summary
    9. 2. The Control Panel
      1. Control panel access
      2. The dashboard
      3. Layout and navigation
        1. Content
        2. Structure
        3. Data
        4. Users
        5. Settings
        6. Add-ons
        7. Profile
      4. Choosing a default language
      5. Summary
    10. 3. Creating Pages and Page Types
      1. Pages
      2. The Pages module
      3. How to create a basic page
        1. Page Details tab
        2. Page Content tab
        3. Meta Data tab
        4. CSS and Script tabs
        5. Options tab
        6. Save the page
      4. Page types
        1. Create a new page type
        2. Add custom page type fields
        3. Create a new page with custom data
      5. Summary
    11. 4. Plugin and Module Add-ons
      1. Plugins
        1. Tags
        2. How to create a plugin
      2. Modules
        1. Folder structure
        2. How to create a module
          1. The info() method
          2. The install() method
          3. The uninstall() method
          4. The upgrade() method
          5. The help() method
          6. Putting it together
        3. Add a controller
        4. Plugins and widgets in modules
      3. Summary
    12. 5. Creating a PyroCMS Theme
      1. Folder structure
      2. Getting started
        1. Creating a theme.php file
      3. Theme options
        1. Building the theme options form
      4. Theme layouts
      5. Tags explained
        1. Basic tag
        2. Tag attributes
        3. Using tags in tag attributes
        4. Tag pairs
        5. Tag conditionals
      6. Tags in templates
      7. Layouts versus page types
      8. Theme partials
      9. Multiple layouts
      10. Mobile layouts
      11. Module view overloading
      12. Summary
    13. 6. Using PyroCMS Streams
      1. How to get Streams
      2. Creating a stream
      3. Creating fields
      4. Assigning fields
      5. Ordering fields
      6. Default columns (fields)
      7. The backend input form
      8. Displaying your data
      9. Streams plugin
        1. Common variables
        2. Entry looping
        3. The loop cycle
        4. Filter by date
        5. Other parameters
        6. How to use the "where" parameter
        7. Nested variables
        8. Pagination
      10. Stream data entry form
        1. How to build the form
        2. Custom success and error messages
        3. Form assets
        4. E-mail notifications
      11. Summary
    14. 7. Building a Website with PyroCMS
      1. Installation
      2. Creating a custom theme
      3. Creating a layout file
      4. Brief review of tags
      5. Adding theme partials
      6. Adding a contact form
      7. Adding stream data to your website
      8. Defining a custom route
      9. Summary
    15. Index