Create a Custom Static Module
with XHTML and Javascript
A module is a part of your site that is customizable beyond the elements that change in the standard editor. These are created by designers or developers to do special functions or display certain types of information.
First, look at the FTP structure of your site. In your main site folder, you should see a folder named "templates" and a folder named "modules".
Site specific modules are stored in the modules folder. Site administrators have no access to the servee modules or templates beyond the module options and API given. If the Servee modules do not do everything that you need, you may need to build a custom module.
To create a module, make a new folder within 'modules' and name it 'hello servee'. Now create a file within 'hello servee' and call it 'display.php'.
Put the following code into 'display.php'
<script type="text/javascript">alert('hello servee user, nice Modules');</script>
Save the file and close. You have created your first module. Now you can select your module from the module chooser within Servee, or you can built it into your template.
To build your module into your template:
Open up your template (templates/Default/MARKUP.template.html) and place the following code where you would like your module to display. This particular example is just an alert box, so you can place it anywhere in the markup. Make sure that the module title in this tag ("hello servee") is the exact same as the folder you placed the new module in. That is how the tag knows which module to select.
<?php buildModule('hello servee',''); ?>
Go to a page on your site and you should see an alert box. That's how you know it worked.
Now, take that out of your template. It's silly. You now have the ability to create much more useful modules.
servee: the web. for humans. issac & kasey kelly, ©.