Developer News: Some theme structural changes coming in RC3
Posted by: onokazuOn 2003/3/1 19:04:35 15863 readsThere has been a change in handling of theme files in RC3 (which is about to be released in the next few days), as well as several modifications to the naming conventions.
The skin files will no longer be included in a themeset, but managed separately as theme files under the themes directory as we did in XOOPS 1.x. Only the module template files are included in a themeset, thus we will rename theme sets as template sets from RC3.
Why this change?
The development of theme files has become too complicated, or requires overly much work with template and skin files combined. In addition, storing them into DB made hard for the files to be modified on a frequent basis. We also have noticed that skin files are touched more often by the site administrators than are the template files. By completely separating them apart to template and theme sets, we hope that it would not only facilitate the development of theme files for XOOP2, but also make the site administration and management much easier.
Please continue reading for details..
Structural changes
[u]XOOPS2 RC1-RC2[/u] [u]XOOPS2 RC3[/u]
skin.html (required, in DB) -> theme.html (required, stored under themes/)
skin_blockcenter_c.html (optional, in DB) -> theme_blockcenter_c.html (optional, under themes/)
skin_blockcenter_l.html (optional, in DB) -> theme_blockcenter_l.html (optional, under themes/)
skin_blockcenter_r.html (optional, in DB) -> theme_blockcenter_r.html (optional, under themes/)
skin_blockleft.html (optional, in DB) -> theme_blockleft.html (optional, under themes/)
skin_blockright.html (optional, in DB) -> theme_blockright.html (optional, under themes/)
image files (optional, in DB) -> image files (optional, under themes/)
module template files (optional, in DB) -> module template files (optional, in DB)
<{include file="db:skin_blockleft.html"}>
<{include file="db:skin_blockright.html"}>
<{include file="db:skin_blockcenter_c.html"}>
<{include file="db:skin_blockcenter_l.html"}>
<{include file="db:skin_blockcenter_r.html"}>
<{include file="your_theme_name/theme_blockleft.html"}>
<{include file="your_theme_name/theme_blockright.html"}>
<{include file="your_theme_name/theme_blockcenter_c.html"}>
<{include file="your_theme_name/theme_blockcenter_l.html"}>
<{include file="your_theme_name/theme_blockcenter_r.html"}>
<{$meta_xxx}> -> <{$xoops_meta_xxx}>
<{$footer}> -> <{$xoops_footer}>