This book is an example-driven tutorial, which will take you from the installation of MODx through to configuration, customization, and deployment. Step-by-step instructions will enable you to build a fully-functional, feature-rich website quickly and without the knowledge of any programming language. This book is ideal for newcomers to MODx. Both beginners and experienced web developers will benefit from this comprehensive guide to MODx. No knowledge of PHP programming or any templating language is needed, but the more advanced chapters towards the end of the book will allow more confident developers to extend their applications even further by creating their own snippets.
Author(s): Antano Solar John
Edition: 2nd New edition
Publisher: Packt Publishing
Year: 2011
Language: English
Pages: 288
Cover
......Page 1
Copyright......Page 3
Credits......Page 4
About the Author......Page 5
About the Reviewers......Page 7
www.PacktPub.com......Page 9
Table of Contents......Page 10
Preface......Page 18
Manage content......Page 24
An application framework......Page 25
Old school—conventional three tiers......Page 26
Advantages of the conventional three tiers......Page 27
Disadvantages of the conventional three tiers......Page 28
Disadvantages of templating......Page 29
Disadvantages of application frameworks......Page 30
Advantages of content management systems......Page 31
Why MODx?......Page 32
So, why MODx?......Page 33
Summary......Page 34
Prerequisites......Page 36
Windows......Page 37
MAC......Page 38
Verification......Page 39
Downloading MODx......Page 40
Creating a database......Page 41
Starting the installation......Page 43
Installation status and diagnostics......Page 45
Documentation......Page 48
Getting support......Page 49
Web forums......Page 50
Summary......Page 51
Site configuration......Page 52
Configuring the site......Page 53
Default Manager interface page......Page 54
Changing the name of the site......Page 55
The basic element of MODx: Resources......Page 56
MODx Manager interface......Page 57
Using the HTML editor......Page 58
Creating the Front Page......Page 60
DocManager module......Page 62
Editing documents......Page 63
General tab......Page 64
Access permissions......Page 65
Summary......Page 66
Changing the template of a resource......Page 68
HTML......Page 70
CSS......Page 71
Steps to create the new template......Page 72
Choosing a default template......Page 75
Modifying the template to add dynamic behavior......Page 76
Changing existing templates......Page 77
Creating template variables......Page 78
Template variable values......Page 80
Widgets......Page 81
Using a Snippet......Page 82
Creating a resource......Page 83
Blog entry......Page 84
Generating output......Page 86
Using a custom form for the Post a Blog! page......Page 88
Steps to create a chunk......Page 89
Using a chunk as a form template......Page 90
Checking the Post a Blog! page......Page 91
Chunk and template variable......Page 93
NewsEditor and the Rtcontent field......Page 95
Summary......Page 97
Creating a web user......Page 98
Other user properties......Page 100
Add the login snippet......Page 101
Resource group for friends......Page 105
Restricting access for a resource......Page 106
User: User group......Page 107
Creating a role......Page 109
Creating a Manager user......Page 110
Checking the new role......Page 111
Showing a signup form......Page 112
Link the signup form in the log in snippet......Page 113
Snippets and authorization......Page 114
Summary......Page 115
Ditto......Page 116
More flexibility with parameters......Page 117
Aggregated data in a template......Page 118
Theming MODx—chunks and placeholders......Page 120
Introducing tagging......Page 122
Assigning resources to a category......Page 123
Machine-readable formats and readers......Page 124
Ditto and XML formats......Page 125
Creating RSS views for each category......Page 127
Multiple clauses......Page 129
Summary......Page 130
Menu details in document properties......Page 132
Getting to know WayFinder......Page 133
Theming......Page 134
Creating a simple menu......Page 135
Nested menus......Page 138
Changing the name in the menu......Page 144
Doc Manager......Page 145
Removing pages from the menu......Page 148
Breadcrumb navigation......Page 149
Multiple calls......Page 151
Summary......Page 152
Working of snippets......Page 154
Learning about snippets......Page 155
Jot with the minimal configuration......Page 156
Snippet parameters......Page 158
Placeholders......Page 165
Adding a snippet......Page 168
Copying the required files......Page 170
Using the snippet......Page 171
Summary......Page 174
PHx in action......Page 176
Adding Family and Friends resources......Page 177
Template Code:......Page 179
The PHx notation......Page 186
Simple usage......Page 187
Using the PHx placeholder......Page 188
Multiple conditions......Page 189
Summary......Page 190
Installing SMF......Page 192
Installing the SMF module......Page 197
Image gallery......Page 199
Emailing from forms......Page 204
Installing WebLoginPE......Page 208
Edit profile......Page 209
List users and view their profiles......Page 210
Link to edit a profile......Page 211
Similar posts......Page 213
Summary......Page 216
Learning to create a snippet......Page 218
Returning output......Page 219
Returning placeholders......Page 220
Processing a chunk......Page 221
Using parameters......Page 222
$MODx->db->select......Page 224
$MODx->db->makeArray......Page 225
Creating the table......Page 226
Code for fortunes......Page 227
Testing the snippet......Page 228
Chunks, placeholders, and parameters......Page 229
Summary......Page 231
SEO......Page 232
Search engine-friendly URLs......Page 233
Meta tags and keywords......Page 237
Site map......Page 238
Alternative text......Page 240
Filesystem......Page 241
FTP......Page 242
WebDAV......Page 244
Exporting......Page 245
Importing......Page 246
Configuration file......Page 247
Security......Page 248
Captcha......Page 249
Manager configurations......Page 250
Summary......Page 251
Plugins and events......Page 252
Using an existing plugin......Page 253
Configuration......Page 255
System events......Page 256
Using custom plugins......Page 257
Learning about the plugin......Page 259
Creating plugins......Page 260
Modules......Page 262
Executing a module......Page 263
Module's Manager interface......Page 264
Dependent plugins......Page 265
Summary......Page 267
What is similar?......Page 268
What to expect?......Page 269
Tags......Page 270
A peek into Revolution......Page 271
Summary......Page 275
Index......Page 276