售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
MODx Web Development
Table of Contents
MODx Web Development
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
Errata
Piracy
Questions
1. What is MODx?
Content management system
Manage content
Content management rules
Define content
An application framework
Web development methodologies
Old school—conventional three tiers
Advantages of the conventional three tiers
Disadvantages of the conventional three tiers
Templating
Advantages of templating
Disadvantages of templating
Application frameworks
Advantages of application frameworks
Disadvantages of application frameworks
Content management systems
Advantages of content management systems
Disadvantages of content management systems
Why MODx?
Why a CMS?
Why an application framework?
So, why MODx?
Overview of the book
Summary
2. Getting Started
Setting up the development environment
Prerequisites
Linux
Windows
MAC
Verification
Downloading MODx
Installing MODx
Creating a database
Starting the installation
Installation status and diagnostics
Documentation
Official documentation
Community-driven documentation
Combined
Getting support
Web forums
IRC
Summary
3. MODx Basics
Site configuration
Configuring the site
Default Manager interface page
Noticing and fixing errors and warnings
Changing the name of the site
The basic element of MODx: Resources
Containers
MODx Manager interface
Using the HTML editor
Creating the Front Page
DocManager module
Resources revisited
Editing documents
Resource properties
General tab
Settings
Access permissions
Summary
4. Templating
Changing the template of a resource
Creating a new template and giving it a category
HTML
CSS
Steps to create the new template
Making the home page use the created template
Choosing a default template
Introducing template variables
Modifying the template to add dynamic behavior
Changing existing templates
Template variables
Creating template variables
Template variable values
Data source binding
Widgets
Creating a blog site
Using a Snippet
Creating a resource
Blog entry
Snippet and chunk basics
Generating output
Using a custom form for the Post a Blog! page
HTML for the custom blog form
Steps to create a chunk
Using a chunk as a form template
Checking the Post a Blog! page
Rich text editor for the blog content
Creating the template variable
Chunk and template variable
NewsEditor and the Rtcontent field
Summary
5. Authentication and Authorization
Creating a web user
Other user properties
Add the login snippet
Resource group for friends
Restricting access for a resource
User group: Resource group
User: User group
Post moderation
Creating a role
Creating a Manager user
Checking the new role
User registration
Showing a signup form
Joining a default group
Link the signup form in the log in snippet
Snippets and authorization
NewsPublisher and authentication
Summary
6. Content Aggregation
Ditto
More flexibility with parameters
Aggregated data in a template
Theming MODx—chunks and placeholders
Introducing tagging
Creating a template variable to hold the category
Assigning resources to a category
XML formats
Machine-readable formats and readers
Readers
Ditto and XML formats
Creating RSS views for each category
Filtering
Multiple clauses
Extenders
Summary
7. Creating Lists
Menu details in document properties
Authentication and authorization
Getting to know WayFinder
Theming
Creating a simple menu
Nested menus
Changing the name in the menu
Doc Manager
Removing pages from the menu
More theming using chunks
Breadcrumb navigation
Multiple calls
Summary
8. Snippets
Working of snippets
Finding snippets
Learning about snippets
Jot with the minimal configuration
Snippet parameters
Placeholders
Using non-bundled snippets
Installing a snippet
Downloading and extracting a snippet
Adding a snippet
Copying the required files
Using the snippet
Snippet without dependent files
Snippeting skills
Summary
9. PHx
PHx in action
Installing PHx
Adding Family and Friends resources
Template Code
The PHx notation
Simple usage
Conditional statements
Using the PHx placeholder
Multiple conditions
Summary
10. Simple Recipes
Forums
Installing SMF
Installing the SMF module
Image gallery
E-mailing from forms
User profiles
Installing WebLoginPE
Edit profile
List users and view their profiles
Link to edit a profile
Similar posts
Summary
11. Creating Snippets
Learning to create a snippet
Returning output
Returning placeholders
Processing a chunk
Using parameters
MODx API
DBAPI
$MODx->db->select
$MODx->db->getRecordCount
$MODx->db->makeArray
Fortunes
Creating the table
Code for fortunes
Testing the snippet
Chunks, placeholders, and parameters
Using files
Summary
12. SEO, Deployment, and Security
SEO
Search engine-friendly URLs
Meta tags and keywords
Site map
XHTML Strict
Other SEO tweaks
Using CSS to control the layout
Content first
Hidden text
Descriptive text
Alternative text
Cross links
Tracking
Inbound links
Quality content
Deployment
Filesystem
FTP
SFTP
WebDAV
Database
Exporting
Importing
Configuration file
Configurations
Security
File permissions
Installer
Writable configuration file
Captcha
mod_security
Unused files
Manager configurations
User tab
File Manager tab
Summary
13. Plugins and Modules
Plugins and events
Using an existing plugin
Configuration
System events
Exploring other plugins
Using custom plugins
Learning about the plugin
Creating plugins
Event-triggering snippets
Modules
Using modules
Creating a module
Executing a module
Module's Manager interface
Dependent plugins
Learning to use custom modules
Summary
14. MODx Revolution
Why Evolution, why Revolution…
What is similar?
What to expect?
Tags
A peek into Revolution
Core technology changes
xPDO
Sencha and Smarty
Join the community
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜