User Login    
 + Register
  • Main navigation
Login
Username:

Password:


Lost Password?

Register now!
Documentation
Who's Online
122 user(s) are online (7 user(s) are browsing XoopsWiki)

Members: 5
Guests: 117

btesec, caek9, RC78_TITI, wetsteve, zorro87, more...
[Main Page]

2.14.3. Editing templates

From XOOPS Project

Main Page | Recent changes | View source | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: Operation Manual

العربية * * Deutsch * * sc * * Español * * Français * * Italiano * * Nederlands * * Polski * * Português do Brasil * * 中文 * *


Operation Manual Index


You can obtain a full list of a module’s templates by selecting its list link. The list is broken into two parts: The first part lists the ‘page’ templates and the second lists the individual block templates (note that block templates are also accessible via the System Module->Blocks menu->Edit)


Figure 2.15. The different templates for a single module

Here you have the option to delete an individual template, save it to disk (download), upload a new version of a template (using the browse button to select the appropriate file), or to edit it. Selecting the edit link will present you with the actual template code, which you may then modify directly:

http://xoops-end-user.com/xoops03/xdocman/img/en/xd-001/template_overview.png

Figure 2.16. Editing a template

http://xoops-end-user.com/xoops03/xdocman/img/en/xd-001/template_edit.png

The preview button will allow you to see the effect of changes in a new window without committing the changes (this is most useful for block templates, previews of page templates may be blank or show arcane fields of variable names). The submit button will save any changes you have made to the template.

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.

Retrieved from "http://www.xoops.org/modules/mediawiki/index.php/2.14.3._Editing_templates"

This page has been accessed 622 times. This page was last modified 01:37, 4 December 2007. Content is available under XOOPS Project.


Local Support Sites
Powered by
XOOPS Code hosted on SourceForge

Powered by PHP



Powered by MySQL

Powered by Smarty

OSI certified

All content on this site is subject to the Creative Commons License
Developers for Hire