Custom block or content block for headlines?
Permalink
I hope that question is not stupid... Just to get an impression how C5 renders content, what would you say, what is best practice, if - for some reason - separate blocks only for h1 headlines are needed on a page. As regards performance, is it better to create a custom block that only outputs h1 headlines for that purpose (with designer content for example), or should the core content block always be used, even when only headlines are needed? Or doesn't it make any difference at all?
It probably doesn't make much difference what block you use but in general I'd recommend not to use too many block. Each block has at least one SQL query (with some very rare exceptions). If you have one big content block, you still just have one query. If you have 100 block instances, you'll also have 99 additional queries...
Thank you, Remo,
that's what i was assuming. A block is obviously just a tool to get data into database tables, for retrieving the data it may be irrelevant what kind of block has put them into the database.
Thank you,
Michael
that's what i was assuming. A block is obviously just a tool to get data into database tables, for retrieving the data it may be irrelevant what kind of block has put them into the database.
Thank you,
Michael