An important setting for controlling multiple custom layouts is the "Default Layout"
setting in the Settings ->
Display
screen of the administrator.
This setting tells SoftSlate Commerce which layout to give users by default, if the layout is
not specified on the URL. Initially, it is set to "custom", meaning that fresh visitors coming
to site will get the templates in the /WEB-INF/layouts/custom
directory, if they exist. However, since the custom
directory is
empty when SoftSlate Commerce is first initialized, in effect visitors see the templates in
the default
directory when the store is first installed.
To clarify, here are the steps SoftSlate Commerce takes to determine which JSP template to use for a given user:
layout
. If this parameter exists, its value is
placed in the user's session and is carried with the user until the session
expires.layout
has been set,
SoftSlate Commerce looks for the JSP template under a directory of the same name,
inside the /WEB-INF/layouts
directory. In other words, if
the user's layout
has been set to
special
, the system uses the JSP templates inside the
/WEB-INF/layouts/special
directory.layout
parameter, the system next looks inside a
directory of the same name as the Default Layout setting defined in the
Settings -> Display
screen. By default, this would be
the /WEB-INF/layouts/custom
directory./WEB-INF/layouts/default
directory to find the
template.Tip | |
---|---|
For complete details on how to set up multiple custom layouts, refer to the Multiple Custom Layouts section. |
Copyright © 2008 SoftSlate, LLC. All Rights Reserved.
Powered by SoftSlate Commerce