Client Templates

From SolusVM

Jump to: navigation, search

SolusVM allows you to create custom client area templates based around the Smarty template engine.

Client area templates are stored in /usr/local/solusvm/templates/client and their images/css are stored in /usr/local/solusvm/www/template_assets/client

As an example the default template:

/usr/local/solusvm/templates/client/default/
                                            backup.tpl
                                            boot.tpl
                                            console.tpl
                                            control.tpl
                                            footer.tpl
                                            header.tpl
                                            home.tpl
                                            hostname.tpl
                                            ipaddresses.tpl
                                            login.tpl
                                            lostpassword.tpl
                                            overview.tpl
                                            profile.tpl
                                            reboot.tpl
                                            reinstall.tpl
                                            rootpassword.tpl
                                            shutdown.tpl
                                            statistics.tpl
                                            suspend.tpl
                                            unsuspend.tpl
                                            verification.tpl
                                            vmlog.tpl 

/usr/local/solusvm/www/template_assets/client/default/
                                                         style.css
                                                      js/
                                                         core.js
                                                         functions.js
                                                  images/
                                                         image1.jpg
                                                         image2.jpg
                                                         etc..

If you need to modify the default template, you must first copy it to a folder with a new name i.e:

/usr/local/solusvm/templates/client/defaultcopy
/usr/local/solusvm/www/template_assets/client/defaultcopy

You can then activate the new template by selecting the template from the dropdown box within the admin area >> General Settings.

Personal tools
Installation/Upgrading
Customization