PEAK XOOPS - Re: Load diferent bolcks for diferent themes! in englishin japanese

Re: Load diferent bolcks for diferent themes!

List posts in the topic

question Re: Load diferent bolcks for diferent themes!

msg# 1.1
depth:
1
Previous post - Next post | Parent - No child | Posted on 2006/4/7 3:57
GIJOE  ÀèǤ·³Áâ   Posts: 4110
It is possible, but it is not easy to explain.

eg) left block

edit themes/x/theme.html
<{foreach item=block from=$xoops_lblocks}>
	<{if $block.title!="(block name for y)"}>
		<div class="blockTitle"><{$block.title}></div>
		<div class="blockContent"><{$block.content}></div>
	<{/if}>
<{/foreach}>

edit themes/y/theme.html
<{foreach item=block from=$xoops_lblocks}>
	<{if $block.title!="(block name for x)"}>
		<div class="blockTitle"><{$block.title}></div>
		<div class="blockContent"><{$block.content}></div>
	<{/if}>
<{/foreach}>

If you can't understand with the code, learn smarty itself.
Votes:10 Average:1.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!