$block->display() does not load the blocks on_page_view() function

Permalink
I have a page with tabs.

Each tab is a page in the sitemap. Within each tab i want the content of the (child) page shown in the tabbed page.

This works with $block->display(), except for example when using a block that loads js files to the head, in the on_page_load...

How can i force this??

THNX

MissMarvels
 
ScottC replied on at Permalink Reply
ScottC
call on_page_view from your view method?

function view(){
$this->on_page_view();
}
function on_page_view(){
//whatever
}
MissMarvels replied on at Permalink Reply
MissMarvels
NOPE, sorry, to explain...

page
|---- tabpage
|---- tabpage
|---- tabpage
|---- tabpage

in one of the tab pages is a block (zoom display), that user on_page_view() to load a script into the header...

So when i load page, the content of each tabpage has to be loaded into the page...

This works with a loop trough the blocks and call the display function...

But... the scripts are not set in the head of (in this case) page...