XOOPS Operations Guide
  • Introduction
  • GENERAL PRINCIPLES
    • The XOOPS Core
    • Modules
    • Blocks
    • Users and Groups
    • Content
    • Language Files
    • Themes and Templates
  • The Admin Interface
    • Logging
      • As Site Administrator
      • As Registered User
      • Incorrect Login Procedure
      • Logging Out
    • Control panel home
      • Some preliminaries before we get started in the admin area
        • JavaScript
        • Cache
    • Working with the new Admin GUI (en/book/our Dashboard)
      • Help Functions
    • Avatars
      • Adding avatars
      • Edit and delete Avatars
      • System Avatars
      • Custom Avatars
    • Banners
      • What are they?
      • Current active banners
      • Add new banner
      • Editing banners
      • Finished banners
      • Advertising clients
      • Add new client
    • Blocks
      • Overview
      • Editing/Configuring a block
      • Adding custom blocks
      • Cloning a block
    • Comments
      • Overview
      • Manage comments
    • Groups Overview
      • The different sets of rights
      • Edit members of this group
      • Creating a new group
    • Image Manager
      • Adding image categories
      • Editing and deleting images and categories
      • Adding image files through the control panel
      • Accessing the image manager from the user side
    • Mail Users
    • Maintenance
    • Modules
      • Acquiring a module
        • Module origins
        • Ancillary files
        • Copyrights and GPL notices
      • Uploading the module
        • Preparing the module files for upload to a remote server
        • Using FTP or browser file uploader
        • Upload the module package
        • Setting file/directory permissions
      • Installing the module
      • Setting module visibility and menu order
      • Configuring module settings and options
        • Renaming module
        • Display and position options for the module
      • Setting user access rights for a module
    • Preferences
      • General Settings
      • User Info Settings
      • Meta Tags and Footer
      • Word Censoring Options
      • Search Options
      • Mail Setup
      • Authentication Options
      • System Module Settings
    • Smilies
      • Using smilies
      • Adding and editing smilies
    • Templates
      • The default template set
      • Cloning and downloading template sets
      • Editing templates
      • Uploading a new template set
    • User Ranks
    • Users Management
    • Feedback
  • About XOOPS CMS
Powered by GitBook
On this page
  1. The Admin Interface
  2. Templates

Editing templates

PreviousCloning and downloading template setsNextUploading a new template set

Last updated 6 years ago

You can see a full list of available templates by browsing the directory TreeView. When you select a template, XOOPS will open it in an editor where you can edit it.

While editing templates you must enable a preference that automatically updates module template .html files if there are newer files under the themes/your theme/templates directory for the current theme (System Module -> Preferences -> General Settings -> Update module template .html files from themes/your theme/templates directory? -> ‘Yes’). This should be turned off once the site goes public.

If you accidentally mess up a template don’t forget that you can retrieve a ‘good’ copy from the default template set. If you are working with non-standard templates it may be a good idea to save a copy to disk before you start modifying them. Let’s modify one of the templates coming with the XOOPS Poll module. To do so, let’s select the theme we want to modify the templates for (here: Zetagenesis):

As next, let’s select few of the XOOPS Poll templates:

When we click on submit, the original templates from the module are copied to the theme directory:

Now selecting in the TreeView the Zetagenesis theme and XoopsPool in the modules directory, we can see the templates which can then be directly modified in an editor:

Figure 22 Editing Template File

The ‘submit’ button will save any changes you have made to the template.

img_105.jpg
img_104.jpg
img_104.jpg
img_104.jpg