Strange behaviour when block is included directly into page template...
PermalinkI've created a scrapbook content item which I include directly into the page template with the code provided below.
When rendered, the link in the scrapbook item is stripped out and I'm left with only the image.
However, if I paste the same scrapbook area into an editable area, the link starts to work. I've noticed the same thing with custom templates not working for blocks included directly in the page template.
Has anyone else come across this problem?
The code for including the scrap book item is as follows:
<?php $block = Block::getByName('PRIMARY_SCHOOL_STICKY') ; if (is_object($block)) $block->display(); ?>
The code for the scrapbook item itself is as follows:
<p> <a title="link title..." href="ficticious.html"> <img src="/c5/index.php/download_file/view_inline/12/" alt="img.png" width="218" height="200" /> </a> </p>