CMS Made Simple Development Cookbook
eBook - ePub

CMS Made Simple Development Cookbook

  1. 340 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

CMS Made Simple Development Cookbook

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

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.

A hands-on collection of recipes for extending CMS Made Simple, with detailed explanations - useful for beginners and experts alike!

Approach

This is a cookbook, with practical recipes providing tips and tricks to the most common problems and scenarios faced with CMS Made Simple Development.

Who this book is for

If you are a CMS Made Simple user wanting to expand your skill set, or a programmer who wants to develop for CMS Made Simple, this book is for you. You will need working knowledge of PHP, HTML, and SQL. Some experience with CMS Made Simple is recommended.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access CMS Made Simple Development Cookbook by Samuel Goldstein in PDF and/or ePUB format, as well as other popular books in Design & Web design. We have over one million books available in our catalogue for you to explore.

Information

Year
2011
ISBN
9781849514682
Edition
1
Topic
Design
Subtopic
Web design

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...
There's 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....

Table of contents

  1. CMS Made Simple Development Cookbook