Book Image

Mastering Magento Theme Design

By : Andrea Sacca
Book Image

Mastering Magento Theme Design

By: Andrea Sacca

Overview of this book

Table of Contents (18 chapters)
Mastering Magento Theme Design
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating the theme options module


As we said in the previous chapter, to start a new Magento module, you have to create a module code folder under an appropriate code pool. We are going to use the local code pool for our module here.

We can use the same namespace used for the Widget module, BookStore, and create the module inside that folder. We are going to name it ThemeOptions.

Let's start creating the basic module. The following is the folder structure:

app
- code
  - local
    - BookStore
      - ThemeOptions
        - etc
        - Helper
        - Model
- etc

Activating the module

To activate the module, we need to do the following three simple operations:

  1. Create the BookStore_ThemeOptions.xml file in app/etc/modules/ with the following code to activate the module:

    <?xml version="1.0"?>
    <config>
      <modules>
        <BookStore_ThemeOptions>
          <active>true</active>
          <codePool>local</codePool>
          <depends>
            <Mage_Cms/&gt...