Szczegóły ebooka

CMS Made Simple Development Cookbook. Over 70 simple but incredibly effective       recipes for extending CMS Made Simple with detailed explanations –       useful for beginners and experts alike!

CMS Made Simple Development Cookbook. Over 70 simple but incredibly effective recipes for extending CMS Made Simple with detailed explanations – useful for beginners and experts alike!

Ebook
CMS Made Simple has great capabilities “out of the box,” but one of its great strengths is the ease of extending those capabilities. You can add a surprising amount of functionality just by customizing the core modules, but once you learn to write your own tags and modules, your ability to add features is virtually limitless.CMS Made Simple Development Cookbook will show you how to use custom PHP code to extend the power and features of CMS Made Simple, and make it do exactly what you want. This easy to use guide contains clear recipes that introduce the key concepts behind each approach to extending the CMS, while also providing examples of solutions to real-world problems.You will learn the differences between the various kinds of tags and modules in the CMS Made Simple environment, and to which purposes each is best fit. Each technology is then explored in detail with a series of practical recipes and examples.You will not only learn the basics of creating tags and modules, but you will explore the underlying APIs that you will use to solve real-world website problems. You will become proficient with the database and form APIs, so that the code you write is portable and maintainable. You'll learn to localize your code and use templates to add its flexibility. You'll master the safe handling of parameters and the creation of secure code. You’ll be familiar with the CMS Made Simple Developer's Forge, and how you can use it in conjunction with revision control as a community-focused code management system, complete with web-based bug tracking and feature requests. You will learn to code complex interactions between modules, both directly and via the creation and handling of events. You will gain exposure to an array of advanced tips and tricks, along with commentary from the distilled experience of someone who has written dozens of modules. The CMS Made Simple Developer's Cookbook offers an amazing wealth of knowledge in approachable, bite-sized recipes. Whether you're new to the CMS or an old hand, you're sure to find valuable tips and information that will have you creating a richer CMS.
  • CMS Made Simple Development Cookbook
    • Table of Contents
    • CMS Made Simple Development Cookbook
    • Credits
    • About the Author
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Downloading the example code
        • Errata
        • Piracy
        • Questions
    • 1. Understanding CMS Extensions
      • Introduction
      • Will a User-Defined Tag solve my problem?
        • How to do it...
        • How it works...
        • See also
      • Will a Tag Solve My Problem?
        • How to do it...
        • How it works...
        • See also
      • Will a Module solve my problem?
        • How to do it...
        • How it works...
        • See also
      • Create a "Hello World" User-Defined Tag
        • Getting ready
        • How to do it...
        • How it works...
        • Theres more...
          • Caching
        • See also
      • Create a "Hello World" Tag
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • Caching
          • Tag Names and Namespaces
        • See also
      • Create a "Hello World" Module
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Using CMS in Debug Mode
        • How to do it...
        • How it works...
        • See also
    • 2. Programming with Smarty and Core Modules
      • Introduction
      • Using Smarty to create a color set in your stylesheet
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Using Smarty to do the math in your stylesheet
        • Getting ready
        • How to do it...
          • How it works...
          • There's more...
          • See also
        • Renaming the "Extra Page Attributes" in the CMS Admin
          • Getting ready
          • How to do it...
          • How it works...
          • There's more...
            • What else can I rename?
          • See also
        • Creating a personnel directory using Menu Manage
          • Getting ready
          • How to do it...
          • How it works...
          • There's more...
            • Using other page attributes
            • Why use a naming convention for images?
          • See also
        • Creating a basic Google Sitemap with Menu Manager and mod_rewrite
          • Getting ready
          • How to do it...
          • How it works...
          • There's more...
            • The changefreq and priority attributes
            • What if my site is not UTF-8?
          • See also
        • Embedding JavaScript in your template without causing Smarty to throw a fit
          • Getting ready
          • How to do it...
          • How it works...
            • An alternative approach
            • Using Smarty Variables in your JavaScript
        • Using Smarty loops to generate similar stylesheet constructs
          • Getting ready
          • How to do it...
          • How it works...
          • There's more...
          • See also
        • Displaying a block only for the Home page
          • Getting ready
          • How to do it...
          • How it works...
          • There's more...
            • More complex comparisons
          • See also
        • Using Smarty "Capture" and conditionals to hide empty content blocks
          • Getting ready
          • How to do it...
          • How it works...
          • There's more...
          • See also
        • Seeing what Smarty variables are available to your template
          • Getting ready
          • How to do it...
          • How it works...
          • There's more...
            • Risky recursion
          • See also
    • 3. Getting the Most out of Tags and User-Defined Tags
      • Introduction
      • Displaying the User's IP address from a User-Defined Tag
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Using the CmsObject and the current content object in a User-Defined Tag
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • Getting attributes using page_attr
          • Old code and the use of globals
      • Making a variable available to Smarty
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Displaying the number of pages in the CMS using a User-Defined Tag
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Using URL parameters safely in a User-Defined Tag
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Using Smarty values as inputs in a User-Defined Tag
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Displaying stock prices from Yahoo with a User-Defined Tag
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • Understanding Yahoo's stock quote URL format
        • See also
      • Displaying a translation of the current page using Babelfish with a User-Defined Tag
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Posting an article to the News Module when the Admin adds a new Group
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Reversing a string in two ways using a Smarty Modifier
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Adding registered trademark symbols to a name automatically
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • Handling more than just content blocks
          • Pre-compile filters
        • See also
    • 4. Getting Started with Modules
      • Introduction
      • Creating the file structure for a module
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • Other files in your module directory
          • Directly accessed scripts
        • See also
      • Creating a new module stub using the Skeleton module
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Creating a new module stub using the ModuleMaker module
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Breaking a module into multiple files
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Making a module localizable
        • Getting ready
        • How to do it...
          • How it works...
          • There's more...
            • Localization of modules without Subversion
          • See also
        • Using Smarty variables and templates with a module
          • Getting ready
          • How to do it...
          • How it works...
          • There's more...
            • $this->smarty versus $smarty
          • See also
        • Calling methods on other modules and specifying module dependencies
          • Getting ready
          • How to do it...
          • How it works...
          • There's more...
            • Dependencies and ModuleManager
            • Error checking
          • See also
    • 5. Using the Database API
      • Introduction
      • Creating a database table when a module gets installed
        • How to do it...
        • How it works...
        • There's more...
          • ADOdb or ADOdb-lite?
        • See also
      • Creating a database index when creating a table
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Making a database query from a module
        • How to do it...
        • How it works...
        • See also
      • Creating and using a database sequence
        • How to do it...
        • How it works...
        • There's more...
          • Deciding between Sequences and Auto-increment
        • See also
      • Altering a database table when a module gets upgraded
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Cleaning up when a module is uninstalled
        • How to do it...
        • How it works...
        • There's more...
        • See also
    • 6. Using the Module Form API
      • Introduction
      • Creating a basic form in a module
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Restricting and sanitizing parameters to a module
        • How to do it...
        • How it works...
        • There's more...
          • CLEAN_STRING and entity encoding
        • See also
      • Using debug_display or error_log to see what parameters your module is receiving
        • How to do it...
          • How it works...
          • See also
        • Making your module display its output without disrupting the rest of the page
          • How to do it...
          • How it works...
          • There's more...
          • See also
        • Embedding your module output in a different page after a form submission
          • How to do it...
          • How it works...
          • There's more...
            • Modules and multi-page forms
          • See also
        • Creating checkboxes that always submit a value
          • How to do it...
          • How it works...
          • There's more...
          • See also
    • 7. Your Module and the Community
      • Introduction
      • Creating an account on the CMS Made Simple Developer's Forge
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Adding your module to the Forge
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Creating your Subversion Repository
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • Subversion Documentation
        • See also
      • Using Subversion while developing your module
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • More useful Subversion commands
          • Viewing and reverting to earlier revisions
        • See also
      • Publishing a module release
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Creating your Git repository
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Using Git while developing your module
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • Handling conflicts in Git
        • See also
      • Deciding on Git versus Subversion
        • How to do it...
        • How it works...
        • There's more...
        • See also
    • 8. Creating Useful Admin Panels
      • Introduction
      • Creating an admin panel for your module
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Creating multiple tabs for your admin module
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Creating and enforcing new permissions for your module's administration
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Displaying a page in the CMS Admin without the surrounding theme
        • How to do it...
        • How it works...
        • There's more...
          • Using the "showtemplate" parameter
        • See also
      • Writing a line to the CMS Admin Log
        • How to do it...
        • How it works...
        • See also
      • Displaying a message after installation
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Creating an admin-side input element from your module using a ContentModule block
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Hiding your module from Administrators who don't have permission to use it
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Creating a module-specific preference and admin panel to set it
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Displaying an alert in the CMS Admin from a module
        • How to do it...
        • How it works...
        • There's more...
        • See also
    • 9. Using Events
      • Introduction
      • Attaching a User-Defined Tag to an event
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Finding what parameters an event passes using a User Defined Tag
        • How to do it...
          • How it works...
          • See also
        • Generating an Event from a module
          • How to do it...
          • How it works...
          • There's more...
            • Event help-text conventions
          • See also
        • Handling an Event with a module
          • How to do it...
            • How it works...
            • There's more...
            • See also
          • Use an event to send an e-mail when an Administrator Account is added or deleted
            • How to do it...
            • How it works...
            • There's more...
              • PreSave versus PostSave events
            • See also
    • 10. Advanced Module Tricks and SEO
      • Introduction
      • Overriding Module strings or layout
        • How to do it...
        • How it works...
        • There's more...
          • Why not change modules directly?
        • See also
      • Making your module's data available to CMS Site Search
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Outputting a downloadable CSV file from your module
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Setting special diagnostic messages for debug mode
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Using Pretty URLs in your module
        • How to do it...
          • How it works...
          • See also
        • Custom URLs for module records in CMS Made Simple version 1.9+
          • How to do it...
          • How it works...
          • There's more...
          • See also
    • Index
  • Tytuł: CMS Made Simple Development Cookbook. Over 70 simple but incredibly effective recipes for extending CMS Made Simple with detailed explanations – useful for beginners and experts alike!
  • Autor: Ted Kulp (USD), Samuel Goldstein
  • Tytuł oryginału: CMS Made Simple Development Cookbook. Over 70 simple but incredibly effective recipes for extending CMS Made Simple with detailed explanations – useful for beginners and experts alike!
  • ISBN: 9781849514699, 9781849514699
  • Data wydania: 2011-04-26
  • Format: Ebook
  • Identyfikator pozycji: e_3cay
  • Wydawca: Packt Publishing