1
How can I add content from a block into a template?
I am trying to add the Recent Comments Block (newbb_block_new)
to the index template for newbb (newbb_index)
Going in, I thought it would be fairly straightforward to copy and paste the block into the template. I removed the and clauses, since I always want it to appear, regardless of whether a block is set to visible.
However, it does not generate the content. I thought perhaps it was due to the variables still being $block. variables, so I removed the "block." prefix, with no success.
I am sure it comes down to some difference between blocks and templates that I do not yet know... but, I suspect this should be fairly easy to pull off.
(Before anyone suggests simply turning on the block to make it visible, this causes the block to appear on every post of the discussion. I only want it to appear on the discussion index page.)
Any thoughts?