1
Hi,
We're running XOOPS 2.2.3 on our community website and I'm doing a "theme hack" right now....
My question is:
How can I access all system-wide configured blocks from within my theme?
I mean, normally we all do it like this:
<{foreach item=block from=$xoops_lblocks}>
......
<{/foreach}>
to access the blocks, which are configured for the currently active page on the left.
The problem is the restriction, that I can only access the blocks, which are configured for the page, that is active at the moment.
For example: If the admin configures, that "who's online" is only viewable on the forum pages, I can't access this block if I'm leaving the forum-area on our site.
Let me explain what I want to do, so that you guys understand what I mean:
The standard design of our community is configured so that some blocks only appear on specific pages. What I want to do is a theme, where some specific blocks are available on the whole(!) site (so that they appear, whatever page you are looking at right now). So what I'm planing is kind of "blasphemy", because I want to configure these blocks statically. 3 or 4 blocks shall be configured statically in the theme so that they always appear on the left / right.
I hope you can follow my plan:)
In "spoken syntax", I want to do something like this:
.....
....(configure some variables to "collect" the specific blocks).....
........
$whosOnlineBlock, $searchBlock, $someOtherBlock;
<{foreach item=block from=$xoops_all_blocks}>
if $block.title = 'Who's Online' --> $whosOnlineBlock = $block;
........
.......(collect all blocks)....
........
<{/foreach}>
and then include these blocks on the left / right later on.
Maybe you could also help me out with the syntax...maybe I should do this in normal PHP syntax?
Thanks in advance, anselmoso