You are previewing Building Websites with Mambo.
O'Reilly logo
Building Websites with Mambo

Book Description

A fast paced introductory tutorial to this well established PHP/MySQL based content management system

  • Get your Mambo website up fast

  • Walk through the whole process

  • Customise and extend your Mambo site



  • In Detail

    Mambo is a mature and fully featured Content Management System (CMS). First released in 2001, the system is now on release 4.5.x and is supported by an active and well organized open source development team and community. Mambo is both easy to use at the entry level for creating basic websites, whilst having the power and flexibility to support complex web applications.

    Mambo implements the core requirements of a full featured CMS. It has a powerful and extensible templating system with the ability to upload and manage many different data types. User access control, content approval, rich administrative control, content display scheduling are all built-in. New features and extensions are constantly added to the core system, with many more being available and supported by the community.

    The book begins by introducing Mambo and concepts behind content management. Then the installation of Mambo, and its supporting software [Apache/MySQL/PHP] is covered clearly and simply. Once you have the installation up and running, we then take a tour of Mambo as it appears out of the box, to familiarize ourselves with how it works and what is what. As you take the tour, your own ideas for what you need in your new website begin to crystallise around what you can see Mambo is capable of.

    We then build our web application, using the features of Mambo that are essential to our purpose. We try not to spend time on things that don???t matter at this point. Once we have a base version of our site up, we then learn how to change its appearance and feature set to suit our particular requirements, including bringing it into line with an established corporate identity. At the end of the book we show how, if you have the skills and the need, you can add your own extensions to Mambo.

    Approach

    This book focuses on taking you through the essential tasks to create a Mambo site as fast as possible. These essential tasks are explained clearly, with well structured step by step instructions. The book does not aim to cover every feature of Mambo, nor is it a comprehensive guide to extending Mambo. Almost everything in the book is accomplished without recourse to the underlying PHP code in which Mambo is written. The book is very readable and the author has a particularly chatty and engaging writing style.

    Who this book is written for?

    This book is suitable for web developers, designers, webmasters, content editors and marketing professionals who want develop a fully featured web presence in a simple and straightforward process. It does not require any detailed knowledge of programming or web development, and any IT confident individual will be able to use the book to produce an impressive web site.

    Table of Contents

    1. Building Websites with Mambo
    2. Credits
    3. About the Author
    4. Acknowledgement
    5. Introduction
      1. What This Book Covers
      2. What You Need for Using This Book
      3. Conventions
      4. Reader Feedback
      5. Customer Support
        1. Code Download
        2. Errata
        3. Questions
    6. 1. Terms and Concepts
      1. 1.1 Content Management System
      2. 1.2 A Quick Glance into History
        1. 1.2.1 Mambo
      3. 1.3 Structure of a CMS
        1. 1.3.1 Frontend and Backend
        2. 1.3.2 Access Rights
        3. 1.3.3 Content
        4. 1.3.4 Templates
        5. 1.3.5 Extensions (Components)
        6. 1.3.6 Workflow
        7. 1.3.7 Configuration Settings
      4. 1.4 Mambo as Real Estate
        1. 1.4.1 Mambo Versions
        2. 1.4.2 Mambo Features
        3. 1.4.3 Examples of Mambo Pages
    7. 2. Installation
      1. 2.1 Setting Up the Local Server Environment
        1. 2.1.1 Windows
          1. XAMPP for Windows
          2. Mambo Stand Alone Server
        2. 2.1.2 Linux
          1. SUSE (9.1)
          2. Debian 3.1/Sarge
          3. Your Own Server at a Provider
      2. 2.2 On a Virtual Server in the Net
      3. 2.3 Installing Mambo
        1. 2.3.1 Selecting a Directory for Installation
          1. An Example
        2. 2.3.2 Local Installation of Mambo
          1. Directory
          2. Unpacking
          3. Mambo Web Installer
            1. Step 1
            2. Step 2
            3. Step 3
            4. Step 4
    8. 3. A Tour of Your New Homepage
      1. 3.1 Frontend
        1. 3.1.1 Menus
              1. Top Menu
              2. Main Menu
              3. Other Menu
        2. 3.1.2 Content
          1. What is Content
          2. First Page/Front Page
          3. The Latest Messages/The Most Often Read Messages
        3. 3.1.3 Advertising
          1. Banner Area
        4. 3.1.4 Functions
              1. Login Area
              2. Polling
              3. Who is Online
              4. Feeds
              5. Back
              6. Search Field
        5. 3.1.5 Decorative Elements
        6. 3.1.6 Prospects
      2. 3.2 Backend
    9. 4. Customizing Mambo
      1. 4.1 The First Attempt
        1. 4.1.1 Installation of a Different Language File
        2. 4.1.2 Translation of a Menu Entry
        3. 4.1.3 Modifying the Menu Name
        4. 4.1.4 Changing the Template for Your Site
      2. 4.2 Configuration of Mambo Administration
      3. 4.3 Help Menu
      4. 4.4 Site Menu
        1. 4.4.1 Site: Global Configuration
              1. Site
              2. Locale
              3. Content
              4. Database
              5. Server
              6. Metadata
              7. Mail
              8. Cache
              9. Statistics
              10. SEO (Search Engine Optimization)
        2. 4.4.2 Site: Language Manager
        3. 4.4.3 Site: Media Manager
        4. 4.4.4 Site: Preview
        5. 4.4.5 Site: Statistics
        6. 4.4.6 Site: Template Manager
              1. Site Templates
              2. Install
              3. Administrator Templates
              4. Install
              5. Module Positions
        7. 4.4.7 Site: Trash Manager
        8. 4.4.8 Site: User Manager
              1. New
      5. 4.5 Menu: Menu Manager
        1. 4.5.1 Customize Existing Menu
              1. New
              2. Edit
              3. Details
              4. Parameters
              5. Publish
              6. Unpublish
              7. Move
              8. Copy
              9. Trash
        2. 4.5.2 Create a new Menu
              1. Content
              2. Miscellaneous:
              3. Components:
              4. Links:
      6. 4.6 Content Menu
        1. 4.6.1 Content by Section
              1. Section
              2. Category
              3. Add/Edit Section Category
        2. 4.6.2 All Content Items
        3. 4.6.3 Static Content Manager
              1. Publishing
              2. Images
              3. Parameters
              4. Meta Info
              5. Link to Menu
        4. 4.6.4 Section Manager
        5. 4.6.5 Category Manager
        6. 4.6.6 Frontpage Manager
        7. 4.6.7 Archive Manager
      7. 4.7 Components Menu
        1. 4.7.1 Install/Uninstall
              1. Installed Components
        2. 4.7.2 Banner
              1. Manage Clients
              2. Manage Banners
        3. 4.7.3 Contacts
              1. Manage Contacts
              2. Contacts Categories
        4. 4.7.4 Mass Mail
        5. 4.7.5 News Feeds
              1. Manage Newsfeeds
              2. Manage Categories
        6. 4.7.6 Polls
        7. 4.7.7 Syndicates
          1. Listing 4.1: XML-News Feed in RSS 0.91Format created by Mambo
        8. 4.7.8 Weblinks
              1. Weblink Items
              2. Weblink Categories
      8. 4.8 Module Menu
        1. 4.8.1 Install/Uninstall
        2. 4.8.2 Site Modules
              1. Banner
              2. Template Chooser
              3. All Menus (mod_mainmenu)
              4. Login Form
              5. Syndicate
              6. Statistics
              7. Archive
              8. Sections
              9. Related Items
              10. Wrapper
              11. Polls
              12. Who’s Online
              13. Random Image:
              14. Newsflash
              15. Latest News
              16. Popular
              17. Search
        3. 4.8.3 Copying a Module
        4. 4.8.4 Administrator Modules
              1. Logged
              2. Mamboforge
              3. Components
              4. Popular
              5. Latest Items
              6. Menu Stats
              7. Unread Messages
              8. Online Users
              9. Quick Icons
              10. System Message
              11. Pathway
              12. Toolbar
              13. Full Menu
      9. 4.9 Mambots Menu
        1. 4.9.1 Install New Mambots
        2. 4.9.2 Site Mambots
          1. Listing 4.2: Deployment of the moscode Mambot
          2. Listing 4.3: Deployment of the GeSHi Mambot
              1. Search Mambots
      10. 4.10 Installers Menu
      11. 4.11 Messages Menu
        1. 4.11.1 Inbox
        2. 4.11.2 Configuration
      12. 4.12 System Menu
        1. 4.12.1 Global Check-In
    10. 5. Useful Extensions
      1. 5.1 Forum
        1. 5.1.1 What can Simpleboard do?
        2. 5.1.2 Installation of Simpleboard
          1. Uninstallation
        3. 5.1.3 Simpleboard Administration
          1. Simpleboard Configuration
              1. Basics
              2. Frontend
              3. Security
              4. Avatars
              5. Uploads
              6. Show Ranking
              7. Integration
          2. Forum Administration
          3. User Administration
              1. File Browser
          4. Uploaded Images Browser
          5. Edit CSS File
          6. Prune Forums
          7. Prune User
          8. Support WebSite
          9. Load Sample Data
          10. Update Database to Version 1.0.4-Beta2:
        4. 5.1.4 User Frontend
          1. Set Up a User Profile
        5. 5.1.5 Simpleboard Module
          1. Installation
      2. 5.2 Calendar
        1. 5.2.1 Installation
        2. 5.2.2 Configuration
          1. Events Config
          2. Manage Event Categories
          3. Manage Events
        3. 5.2.3 User Frontend
        4. 5.2.4 Module
        5. 5.2.5 Event Mambot
      3. 5.3 Gallery
        1. 5.3.1 Zoom Media Gallery
        2. 5.3.2 Zoom Media Gallery: Installation
        3. 5.3.3 Changing the Language
        4. 5.3.4 Zoom Gallery: Administration
          1. Gallery Manager
              1. Properties
              2. Members
          2. Upload Files
          3. Settings
              1. System
              2. Layout
              3. Safe Mode
              4. Accessibility
          4. Move Media
          5. Optimize Tables
          6. Update Zoom Media Gallery
          7. Integration of the Gallery into your Website
        5. 5.3.5 User Frontend
          1. Lightbox
          2. E-Cards
        6. 5.3.6 Modules for the Zoom Media Gallery
      4. 5.4 Comments
        1. 5.4.1 Installation
        2. 5.4.2 Administration
          1. View Comments
          2. Edit Settings
              1. General
              2. Layout
              3. Posting
              4. Notification
          3. Edit Language
        3. 5.4.3 Frontend
      5. 5.5 Multilingualism with Mambelfish
        1. 5.5.1 Installation of Mambelfish (Component and Module)
        2. 5.5.2 Mambelfish Configuration
              1. Languages
              2. Frontend
        3. 5.5.3 Translation with Mambelfish
        4. 5.5.4 Mambot for Mambelfish
        5. 5.5.5 Integrate your Own Components into Mambelfish
          1. Listing 5.1: mambobook.xml
      6. 5.6 Online Shop
      7. 5.7 Document Management
      8. 5.8 Web Accessibility with Mambo
        1. 5.8.1 xMambo
    11. 6. Corporate Identity
      1. 6.1 HTML/XHTML, CSS, and XML
        1. 6.1.1 HTML/XHTML
        2. 6.1.2 CSS
              1. In the Central HTML File
              2. In a Separate CSS File
              3. Within an HTML Tag
              4. Combinations
        3. 6.1.3 XML
      2. 6.2 Create Your Own Templates
        1. 6.2.1 Concept
              1. Fixed Size or Variable
              2. Structure
        2. 6.2.2 HTML Conversion
          1. Listing 6.1: HTML Basic Structure
        3. 6.2.3 File Structure of the Template
          1. Listing 6.2: templateDetails.xml
        4. 6.2.4 First Trial Run
        5. 6.2.5 Integration of the Mambo Module
          1. Listing 6.3: Mambo Metadata
          2. Listing 6.4: index.php with Mambo Modules
          3. Listing 6.5: template_css.css
        6. 6.2.6 Creating a Template Package
        7. 6.2.7 Installation with the Mambo Template Installer
      3. 6.3 Dreamweaver Extension
    12. 7. Your Own Program Extensions
      1. 7.1 Sample Mambobook Component
        1. 7.1.1 The MySQL Table
          1. Listing 7.1: SQL Commands for the Example Table
        2. 7.1.2 The Frontend
              1. mambobook.php
              2. Listing 7.2: mambobook.php
              3. mambobook.html.php
              4. Listing 7.3: mambobook.html.php
        3. 7.1.3 Integration into the Main Menu
        4. 7.1.4 Mambo Administration
              1. The Component Table
              2. Listing 7.4: SQL Commands Menu Entry
              3. admin.mambobook.php
              4. Listing 7.5: admin.mambobook.php
              5. mambobook.class.php
              6. Listing 7.6: mambobook.class.php
              7. admin.mambobook.html.php
              8. Listing 7.7: admin.mambobook.html.php
              9. toolbar.mambobook.php
              10. Listing 7.8: toolbar.mambobook.php
              11. toolbar.mambobook.html.php
              12. Listing 7.9: toolbar.mambobook.html.php
              13. Test
        5. 7.1.5 Create Installation Package
          1. Listing 7.10: install.mambobook.php
          2. Listing 7.11: uninstall.mambobook.php
          3. Listing 7.12: mambobook.xml
      2. 7.2 Modules
        1. 7.2.1 Source Code
          1. Listing 7.13: mod_mambobook.php
          2. Listing 7.14: mod_mambobook.xml
        2. 7.2.2 Installation
        3. 7.2.3 View of the Website
      3. 7.3 Mambots
              1. Listing 7.15: mambobook.searchbot,php
              2. Listing 7.16: mambobook.searchbot.xml
      4. 7.4 End Remarks
    13. A. Miscellaneous
      1. A.1 Downloads
        1. A.1.1 Windows
        2. A.1.2 Linux
        3. A.1.3 Operating System Independent
      2. A.2 Templates
        1. A.2.1 CSS
              1. Head Area
              2. Listing A.1: CSS Definitions: Head Area
              3. Menu Area
              4. Listing A.2: CSS Definitions: Menu Area
              5. Content Elements
              6. Listing A.3: CSS Definitions: Content Element
              7. News Overview
              8. Listing A.4: CSS Definitions: News Overview
        2. A.2.2 PHP and Other Modules in index.php
      3. A.3 Mambo API
      4. A.4 Forgot your Admin Password?