the affordable java shopping cart   

Chapter 12. Multiple Custom Layouts

Table of Contents

Adding an Additional Custom Layout

We've seen examples of how to create a custom layout by copying the default JSP templates that come with the application into the custom directory and then making modifications. SoftSlate Commerce lets you take things one step further and create multiple layouts consisting of multiple sets of customized JSP templates.

In short, you can create as many directories under the /WEB-INF/layouts directory as you wish next to the custom and default directories, each one representing a completely separate look and feel for your store. Which layout a given visitor to your store sees can be controlled by a simple URL parameter (named layout). If the layout URL parameter matches the name of a directory under /WEB-INF/layouts, the store will use the templates in that directory, when they exist, to render the screens. (As with the custom layout, if a template does not exist, the store will use the corresponding template in the default directory.)

Home  |   Features  |   Pricing  |   Demo Store  |   Documentation  |   About Us  |   Contact Us

Copyright © 2005 SoftSlate, Inc. All Rights Reserved.