Find enclosed an example of my template (ajaxSearch demo site in preparation):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
Created By : Coroico (coroico@wangba.fr)
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=[(modx_charset)]" />
<title>[(site_name)] | [*pagetitle*]</title>
<meta name="keywords" content="" />
<link rel="stylesheet" type="text/css" href="assets/templates/ajaxSearchW/css/main.css" media="screen" />
[!CssSwitcher? &defaultcss=`relative`!]
<base href="[(site_url)]"/>
</head>
<body id="type-b">
<div id="header">
<div id="logo">
<h1><a href="#">AjaxSearch</a></h1>
</div>
[!Wayfinder? &startId=`50` &level=`2` &outerTpl=`wfOuter` &innerTpl=`wfInner` &rowTpl=`wfRow` &hereClass=`active` &firstClass=`first` &lastClass=`last` &titleOfLinks=`description`!]
</div>
<div id="content">
<div id="colOne" class='boxed'>
[!Wayfinder? &startId=`55` &level=`2` &hideSubMenus=`1` &outerTpl=`wfOuter2` &innerTpl=`wfInner` &rowTpl=`wfRow` &parentRowTpl=`wfRow` &hereClass=`active` &firstClass=`first` &lastClass=`last` &titleOfLinks=`description`!]
[!CssSwitcher? &parsefolder=`1` &language=`english-utf8` &display=`select` &defaultcss=`relative`!]
[!DocSwitcher? &language=`english-utf8` &display=`select`!]
</div>
<div id="colTwo">
[!Breadcrumbs? &crumbSeparator=`/` &pathThruUnPub=`1` &showHomeCrumb=`0` &showCrumbsAtHome=`1`!]
[*content*]
</div>
</div>
<div id="footer">
{{photochbFooter}}
</div>
</body>
</html>
You need a call
[!CssSwitcher? &defaultcss=`relative`!]
in the page header to load the default css file. And then in a document or somewhere in your template a call like:
[!CssSwitcher? &parsefolder=`1` &language=`english-utf8` &display=`select` &defaultcss=`relative`!]
In this example I use the select form (selection without button).
Be sure that the CS_CSSPATH constant in the includes/snippet.cssSwitcher.inc.php is defined for your needs.
In my exampe:
define('CS_CSSPATH','assets/templates/ajaxSearchW/css/search/');
The folder should contains your css files. for me it contains: relative.css and absolute.css, so I get a select form with two options.
Here
docSwitcher is an another snippet used to define the document subset used by ajaxSearch. docSwitcher is based also on the three classes switcher, htmllist and select And I use it in a document as follow:
[!AjaxSearch? &parents=`[[DocSwitcher]]` &language=`english-utf8`!]
Let me know if you have still some difficulties. I will write the wiki documentation once I know if a few number of people use this snippet.