4
quoting slyss79
Quote:
first you need to CLONE the default template set..
this process is unnecessary if you are running any XOOPS version equal or greater than XOOPS 2.0.14
XOOPS now has template overriding feature that can be implemented from the theme. One of the benefits of this is that when you upgrade your XOOPS modules you won't lose all the modifications you have done to templates.
The instructions are found in the release notes of XOOPS 2.0.14:
Quote:
Templates overriding
Designers can add custom templates to their themes, and those will be used instead of the default ones. To exploit this feature, templates have to be created in subfolders of the themes duplicating the default folders structure and removing the "templates" part:
* To overload system_userinfo.html template located in modules/system/templates/system_userinfo.html you have to create your custom version in /modules/system/system_userinfo.html
* To overload system_block_login.html template located in modules/system/templates/blocks/system_block_login.html you have to create your custom version in /modules/system/blocks/system_block_login.html
Output resources overriding for developers
To allow theme designers to customize images or stylesheets, you have to use the new theme class and xoImgUrl templates plug-in.
* Scripts and stylesheets can be declared to XOOPS using the theme class addScript and addStylesheet methods. The theme instance is available after the inclusion of header.php by using the $xoTheme global variable, and in a template variable of the same name:
<{$xoTheme->addStylesheet('modules/newbb/style.css')}>
* Images and medias URLs have to be generated by using the xoImgUrl plug-in in your templates:
Output resources overriding for designers
Designers can also provide custom versions of most output-related resources using a mechanism similar to the one available to templates, for modules that support this.
* To create a custom stylesheet that will replace modules/newbb/style.css, create your customized file in /modules/newbb/style.css
* To create a custom image that will replace modules/newbb/images/reply.png, create your customized file in /modules/newbb/images/reply.png
you need to set to Yes, in adminsitration panel > system > preferences > general setting
the option: Check templates for modifications ?
while your doing the changes, then set back to No when finished. Deleting also all files in templates_c except index.html is usefull too to erase cache.