I\'ve tried to find solution but with no results. My task is to write module. It should insert some html into existing block.
I noticed that when I used layout .xml file
I believe you cannot output a block without having it in a template that is shown. So if you make your extension on top of creating your block you need to call it in the template where you want it. Unfortunately that means that someone could add your extension on their website and if they have created their own copy of the template file where your block is added because they wanted to modify it in their theme, well your block will not show there. They will have to figure out themselves that your module needs a modification of a template and put the modification in their own template themselves.
A block can output itself without being called in a template if you add the output="toHtml"
attribute to it but as some others have pointed out this will cause the block to be rendered after the