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.