Javascript required for block not loading when block is displayed within another block.
Permalink
I have created a block that requires a specific javascript library. This block will be used in Blog_Entry pages. These pages will, of course, be shown on the parent page using the Page List block and applying the Blog_Index template. I include the required javascript library by calling the addHeaderItem() function from the on_page_view event in my block's controller.
The required javascript file gets included in the header when viewing the page containing the block as it should. It does not get included when the block is shown within the Page List block on the blog entry parent page. (my block is in the "Main" area of the blog entry page)
Anyone have any suggestions for how to resolve this? Am I going about this the wrong way?
The required javascript file gets included in the header when viewing the page containing the block as it should. It does not get included when the block is shown within the Page List block on the blog entry parent page. (my block is in the "Main" area of the blog entry page)
Anyone have any suggestions for how to resolve this? Am I going about this the wrong way?