万本电子书0元读

万本电子书0元读

顶部广告

CMS Made Simple Development Cookbook电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Samuel Goldstein

出  版  社:Packt Publishing

出版时间:2011-04-26

字       数:606.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This is a cookbook, with practical recipes providing tips and tricks to the most common problems and scenarios faced with CMS Made Simple Development. 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.
目录展开

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...

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部