User Login    
 + Register
  • Main navigation
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Who's Online
109 user(s) are online (6 user(s) are browsing XoopsWiki)

Members: 5
Guests: 104

Rickb, GPboarder, luciorota1, Steakman, johntrot, more...
[Main Page]

Story id 3367c

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 Example # 2:

Another example but with the "waiting contents" from the Extensible Waiting Block Module module.

0a 0b 0c 0d Same as example 1

1) First let's download the template block file:
admin system / templates / Waiting Contents Extensible [i]list / line waiting_block_waiting.html, [Download]
<{foreach item=module from=$block.modules}>
<{$module.name}>
    <{foreach item=pending from=$module.pending}>
  • <{if $pending.pendingnum}> <{else}> <{/if}> <a href="<{$pending.adminlink}>"><{$pending.lang_linkname}></a>:<{$pending.pendingnum}> </li> <{/foreach}> </ul> <{/foreach}> </code></div>

    2) Let's modify the file you just downloaded and now have locally.
    <code> <{foreach item=module from=$block.modules}>
    </span><{$module.name}></b>
    
      <{foreach item=pending from=$module.pending}>
    • <a href="<{$pending.adminlink}>"><{$pending.lang_linkname}></a> : <{if $pending.pendingnum}> <b></span><{$pending.pendingnum}></b></font> <{else}> <{$pending.pendingnum}> <{/if}> </li> <{/foreach}> </ul>
      <{/foreach}> </code></div>

      3) If my theme is 7dana-soft, via ftp, go to the directory
      /themes/dana-soft Let's create the directory modules then down and create directory waiting then down and create directory blocks

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

      5) Let's delete files in the /template_c directory (except index.html) (or update modules cache) to see the result...
      Image:Waiting default.jpg <== Default waiting contents bloc - Custum ==>Image:Waiting surcharge.jpg

      </div>
</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_3367c"

This page has been accessed 459 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