User Login    
 + Register
  • Main navigation
Login
Username:

Password:

Remember me



Lost Password?

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

Members: 4
Guests: 106

trabis, bilgikolik, sailjapan, JAVesey, more...
[Main Page]

Story id 3367b

From XOOPS Project

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: Topic id

page 1) - page 2) - page 3) - page 4)
Themes : Templates overriding : a small Tutorial
Posted by alain01 on 2006/9/23 16:50:00 (3942 reads)
Image:Themes.png
Didactic Exemple # 1:

Customization of the template "comments block" (system_block_comments.html from system module)

0a) Test on your test server prior to making production changes.

0b) You must use XOOPS 2.0.14 version or greater, (or version 2.3.x).

0c) If you currently use a cloned template set, you must active the default template set in order to use Overriding.
In this case, you can download the custom templates from your cloned set in order to move them to the proper directories for overriding.

0d) Your block must be visible to see the modification of templates ! ;-) (for beginners)

1) First let's download the template block file:
admin system / templates / System list / line system_block_comments.html, [Download]/i]

  <{foreach item=comment from=$block.comments}>
  <tr class="<{cycle values="even,odd"}>">
  </tr>
  <{/foreach}>
<img src="<{$xoops_url}>/images/subject/<{$comment.icon}>" alt="" /> <{$comment.title}> <{$comment.module}> <{$comment.poster}> <{$comment.time}>


2) Let's modify the file you just downloaded and now have locally.
  <{foreach item=comment from=$block.comments}>
            <tr class="<{cycle values="even,odd"}>">
</tr> <{/foreach}>
                    <img src="<{$xoops_url}>/images/commentaires_ico_16.gif" alt="Commentaire" /> <{$comment.title}>

<{$comment.module}> - <{$comment.time}> - <{$comment.poster}>


3) If my theme is [url="http://www.7dana.com/download/pafiledb.php?action=file&id=25"]7dana-soft[/url], via ftp, go to the directory
/themes/dana-soft Let's create the directory modules then down and create directory system then down and create directory blocks

4) Let's upload the local file system_block_comments.html to /themes/dana-soft/modules/system/blocks/ on the server.

5) Let's delete the files in the /template_c directory (except index.html) (or update modules cache) in order to see the results of our changes...
Image:Comments default.jpg <== default comments bloc - Custum ==>Image:Comments surcharge.jpg
Thats's all

</div>
Page « 1 (2) 3 4 »
page 1) - page 2) - page 3) - page 4)

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

This page has been accessed 440 times. This page was last modified 19:09, 26 December 2007. Content is available under XOOPS Project.


Developers for Hire
Local Support Sites
Make a donation
Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


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
Advertisement