万本电子书0元读

万本电子书0元读

顶部广告

TYPO3 Extension Development电子书

售       价:¥

0人正在读 | 0人评论 9.8

作       者:Dmitry Dulepov

出  版  社:Packt Publishing

出版时间:2008-09-30

字       数:410.8万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
The book is structured so that following the chapters in order builds a TYPO3 extension from the ground up. Experienced developers can use individual chapters independently to get only the information that they need. Each chapter is divided so that the first part contains a de*ion and discussion of the topic covered followed by a coding example with explanation of how principles and techniques from the first part are followed in the code. The reader is encouraged not only to read the book but also to look into the discussed classes and actually code the extension while reading the book. This book is for PHP developers who want to develop a TYPO3 extension. It assumes the reader has experience with PHP, XML, and HTML. No prior knowledge about TYPO3 extension programming or the TYPO3 API is presumed.
目录展开

TYPO3 Extension Development

Table of Contents

TYPO3 Extension Development

Credits

About the Author

About the Reviewer

Preface

What This Book Covers

What You Need for This Book

Who is This Book For

Conventions

Reader Feedback

Customer Support

Downloading the Example Code for the Book

Errata

Piracy

Questions

1. About TYPO3 API

Overview of TYPO3 API

PHP Classes and Files

t3lib_

tslib_

tx_

ux_

user_

How Data Is Stored in TYPO3

Common TYPO3 API

Database API

Extension Management

Helper Functions (t3lib_div)

GET/POST Functions

String Functions

Array Functions

XML Processing

File, Directory, and URL Functions

Debug Functions

System Functions

TYPO3-Specific Functions

TYPO3 File References

Language Support

Reference Index

Hooks

Backend API

TCEforms

TCEmain

Record Manipulation

Clearing Cache

Frontend API

TSFE

Content Objects

Plugin API

Summary

2. Anatomy of TYPO3 Extension

TYPO3 Extension Categories

Category: Frontend

Category: Frontend plugins

Category: Backend

Category: Backend module

Category: Services

Category: Examples

Category: Templates

Category: Documentation

Category: Miscellaneous

Extension Files

Common Files

ext_emconf.php

ext_conf_template.txt

ext_tables.php

ext_tables.sql

ext_tables_static+adt.sql

ext_localconf.php

ext_icon.gif

tca.php

class.ext_update.php

Frontend Plugin Files

pi Files

TypoScript Templates

Backend Module and its Files

Module Function Files

Documentation Files

Summary

3. Planning Extensions

Why is Planning Important?

How to Plan

Gathering Requirements

Implementation Planning

Documentation Planning

TYPO3-Specific Planning

Extension Keys

Database Structure

Field Names

Indexes

Database Relations

Planning Our Extension

Requirements

Functionality

Usability and Expandability

Technical

Extension key

Frontend Plugins

Backend Module

Other Classes

Extension Database Structure

Documentation

Summary

4. Generating Extensions

Why Generation?

Preparing for Generation

Generation Steps

Entering an Extension key

Entering Extension Information

Set Up Languages

Creating New Database Tables

Extending Existing Tables

Creating Frontend Plugins

Creating Backend Modules

Integrating into Existing Modules

Adding Clickmenu Items

Creating Services

Static TypoScript Code

Adding TSConfig

Generating the Extension

Adjusting Extensions

Clean Up

Changing Fields

Hide Tables

Summary

5. Frontend Plugin: An In-Depth Study

Frontend Plugins: The Basics

Concepts

Plugin Configuration

TypoScript Configuration

Flexform Configuration

Templating

Localization

Being Localization-Aware

Localizing Strings

Fetching Localized Records

Character Set Handling

Caching

Caching in TYPO3

Cached and Non-Cached Output

Using cHash

Two Things to Avoid

no_cache=1

set_no_cache()

Advanced: Embedding USER_INT into USER

Summary

6. Programming Frontend Plugins

Review and Update Generated Files

Frontend Plugin Files

class.tx_feuserlist_pi1.php

locallang.xml

Other Related Files

TypoScript Files

ext_localconf.php

ext_tables.php

Non-Reviewed Files

Clean Up Extension

Programming the Plugin

General Workflow

Adding Files

Templates

Flexform Configuration

eID

Defining Functions

Initializing an Extension

Checking the Environment

Loading Configuration

Modifying the Flexform Data Source

Dispatching Calls

Using Templates

Template Basics

Using Templates

Creating a Single view

Creating a Template

Adding stdWrap for Fields

Programming Single View

Creating a List View

Creating a Template

Modifying the TypoScript Template

Programming List View

What is Missing in the List View

Creating Search

Including Styles and Scripts

Adding a Search Box to the Template

Adding a Search Condition

What About Cache?

Creating JavaScript for Autocomplete

Creating PHP Code for Autocomplete

Adding Hooks

What Can Be Optimized?

Summary

7. Programming Backend Modules

Planning a Backend Module

Functionality of a Backend Module

Frontend Classes

Database Structure

Adjusting the Database

ext_tables.sql

ext_tables.php

tca.php

Columns

Types

Palettes

Implementing a Frontend Hook

Backend Modules: The Basics

What Is a Backend Module?

Module Functions

Backend Module Files

Backend API

t3lib_BEfunc

t3lib_TCEmain

t3lib_TCEforms

t3lib_htmlmail

t3lib_refindex

$BE_USER

Implementing a Backend Module

Files and Classes

A Note about Backend HTML

Implementing the Main Class

Implementing the List of Last Logins

Implementing Monthly View

Implementing a List of Active Users

Implementing Page Statistics

Summary

8. Finalizing Extensions

Overview

Updating Code Files

Checking the Code

Using extdeveval to Beautify your Code

Script Documentation

Adding a Function Index

Reformatting the Code

Writing Documentation (Extension Manual)

Documentation Template

Template Structure

Styles in the Template

Images in the Documentation

Writing Documentation

Making Documentation Available

Uploading Extensions to TER

Summary

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部