Re: modules, templates, blocks, and NoMoreBlocks

Scott Kindley <ckindley-/Nmu/[email protected]> 09 Sep 2002 19:54:36 -0500
Newsgroups gmane.comp.web.envolution.devel
Message-ID <[email protected]>
On Mon, 2002-09-09 at 17:53, Seth Cribby wrote:
> 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
> 
Hi Seth,

I mentioned that I played with the NoMoreBlocks module in another post.
I did not look at the code itslef so I am not yet familiar with how it
is coded. I can tell you it is administered from the admin panel and is
basically point and click. Fro what I gathered it did not required hand
editing templates to accomplish it's work. TiMax will have to chime in
if I am mistaken.

Zoom