modules, templates, blocks, and NoMoreBlocks

"Seth Cribby" <[email protected]> Mon, 9 Sep 2002 15:53:43 -0700
Newsgroups gmane.comp.web.envolution.devel
Message-ID <[email protected]>
First off, let me say that I have not used or seen NoMoreBlocks.  Im not
sure that I even understand what it exactly it does.  From what I hear, it
will allow you to specify which blocks are displayed with certain modules.

The ability to use a different template for each block already exists.  You
just need something like this in your blocks template (ie dsblock.tpl ):

[-if (eregi("User's Login",$TITLE))-]
[-include file="loginblock.tpl"-]
[-elseif (eregi("Other Stories",$TITLE))-]
[-include file="otherstories.tpl"-]
[-else-]
[-include file="dsblock2.tpl"-]
[-/if-]

and then create your specified templates (ie loginblock.tpl).

The ability to use a different template for each module also exists.  Just
replace everything in you master2.tpl with something like this:

[-if (eregi("Downloads",pnModGetName()))-]
 [-include file="master4.tpl"-]
[-elseif (eregi("Members_List",pnModGetName()))-]
 [-include file="memberlistmod.tpl"-]
[-else-]
 [-include file="master3.tpl"-]
[-/if-]

and create the specified templates.

Combining the two above techniques can basically allow you to have
completely different styles for all your modules.  We are talking about a
lot of templates by now though, but many of them will be similar.  As long
as NoMoreBlocks does not mess with Encompass to much, it will add the above
the abiltiy to specify which blocks show up for all you modules.

My longwinded point is that we are very near complete customization with
envolution.  Each module can uses a different template (and will be able to
display different blocks.  Each block can use a different template (even the
same block can use a different template in different modules using nested
ifs).  The only thing missing is control over the location of each block
instead of just rightblocks, leftblocks, ect.

Way to go guys, Im loving this stuff.  The above may be difficult for some.
I think Im gonna put together an example theme that shows the current
allowed customization.  Keep up the great work!!

Seth