[support] views' block or custom block ?

Earnie Boyd earnie at users.sourceforge.net
Wed May 26 14:37:47 UTC 2010


Michel Morelli wrote:
> Hi all, I have a big site on a not so good server machine.
>
> Now I need to create (and display) a block with the last entry of a
> particular node type (call it "foo").
>
> I can do this in 2 ways:
> - views (with template files)
> - custom module with costum block section
>
> In a performance context which is the best solution ?

You'll probably have to test it yourself with your environment to 
determine the performance thing.

> I use views in the site so this will not be the only view, and I use
> other custom modules so the block section will be part of one of them.
>

Just because you have views already installed I would suggest using a 
view for the block because it is less code to maintain.

-- 
Earnie
-- http://progw.com
-- http://www.for-my-kids.com


More information about the support mailing list