catching unique blocks with title

digging a bit deeper into the structure of theme and templatesystem you sure have found some individual ways to make xoops layouts do what you want and fit your needs. There were some discussions in the past to have different look of blocks. You want to have different styles on some blocks?

As an (one) example you can use:

<{if $block.title == “mainmenu”}>
<div class=”lnavigationtitle”><h3><{$block.title}></h3></div>
<div id=”navigation”><{$block.content}></div>
<{elseif $block.title == “usermenu”}>
<div class=”lusernavigationtitle”><h3><{$block.title}></h3></div>
<div id=”usernavigation”><{$block.content}></div>
<{else}>
<div class=”ltitle”><h3><{$block.title}></h3></div>
<div class=”lblockcontent”><{$block.content}></div>
<{/if}>

to catch block by title and assigning ID or different classes which you can use in your stylesheet.

Again, make your own exercises and play with xoops and smarty. There are always many ways to Rome. Using a templateengine like smarty there are some more. ;)

Don’t forget to have fun with it!





Leave a Reply

You must be logged in to post a comment.


SITES of the MONTH : 08/2005: linux-gamers.net - fireworks.verno.ru | 09/2005: viapontedinona.it
10/2005: RF Online Base | 11/2005: FREE-EOS | 12/2005: Asian Car Styling | 01/2006: DSLnachPankow.de
02/2006: Roma Victor Camp | 03/2006: NABUUR.COM | 04/2006: Styling+Design-Noord | 05/2006: VETOFISH
06/2006: Utah Antique Machinery News | 07/2006: lebuccaneer.com | 08/2006: Top-logiciel
09/2006: Concrete Connections | 10/2006: Fios Uniao | 11/2006: Casafree Maroc | 12/2006: Ainpg.com
1/2007: Parent Solo


xoopsfactory.com/blog powered by WordPress | Entries (RSS) | Comments (RSS)
Kugelschreiber, Buntstifte und mehr